Forum Moderators: phranque
I'm trying to convert this:
[mydomain.com...]
into this:
[mydomain.com...]
My RewriteRule (which works fine):
RewriteEngine on
RewriteRule ^category([0-9]*)/index\.html$ index.php?c=$1 [L]
The .htaccess file is located in the "forum" folder.
The problem is with the images and CSS files which cannot be found.
My images are here:
[mydomain.com...]
From the error log, this is how the server tries to access them:
"File does not exist: /home/myusername/public_html/forum/category1/images/copylogoright.gif"
What should I do? Help!
Example:
<img src="/forum/images/file.jpg" />
not
<img src="images/file.jpg" />
Like TGecho said, the user agent thinks it is in the directory that is displayed in the address field, which does not really exist when using mod_rewrite with dynamic URLs.
Welcome to WebmasterWorld [webmasterworld.com]!
This should fix the images, but you didn't say where your css is:
RewriteRule ^forum/category1/images/(.*)$ /forum/images/$1 [L]
Jim