url rewrite stuff

6 views
Skip to first unread message

beatme101

unread,
Sep 22, 2007, 11:54:52 AM9/22/07
to Apache .htaccess
Having a little trouble.
I have a /forum/ folder, and a /profile/ folder. The /forum/ folder
contains all of my forum's files. I wanted to make friendly/simple
looking profile urls, so I put a .htaccess file in the /profile/
folder with this in it:
Options +FollowSymLinks
RewriteEngine on
RewriteRule \. ../forum$1 [L]
RewriteRule ^(.*) ../forum/profile.php?mode=viewprofile&u=$1

That worked fairly well, making it so you could view profiles in /
profile/ instead of just /forum/profile.php?mode=viewprofile&u=test..
It also made it so the links on the page will take you back to the
forum, since they contain a dot (and names do not). However, images
that use relative urls don't seem to work. You can see by clicking the
link:
http://www.beatme101.com/profile/test

3 images in the profile area do not work. I can't figure out why..
They have a dot in the address, so logically they should be properly
redirected, right? I also tried adding something more specific for
those images at the top, which didn't work:
RewriteRule ^/templates(.*) ../forum/templates$1 [L]

Reply all
Reply to author
Forward
0 new messages