Hi, I have a question related to losing my styling and images after performing a Rewrite if anyone has some spare time. Here below is my scenario. --- I have a script located at, http://www.example.com/~user/scripts/list.php This script accepts a query string of the format, sort=foo&gn=ABC&dn=XYZ where ABC and XYZ are of the regular expression form [A-Z]* I have placed a .htaccess file in /~user/ with the contents, ##################### RewriteBase / ### 1st rule: (New URL request form) ### /~user/list/foo/ABC/XYZ RewriteCond %{REQUEST_URI} list/(foo)/([A-Z]*)/([A-Z]*)$ RewriteRule ^.*$ /~user/scripts/list.php?sort=%1&gn=%2&dn=%3&stoprewrite=1 [L] ### 2nd rule: (Request for the old URL format) ### /~user/scripts/list.php?sort=foo&gn=ABC&dn=XYZ RewriteCond %{REQUEST_URI} list.php$ RewriteCond %{QUERY_STRING} sort=(foo)&gn=([A-Z]*)&dn=([A-Z]*) RewriteCond %{QUERY_STRING} !stoprewrite RewriteRule ^.*$ /~user/list/%1/%2/%3? [R,L] ##################### The problem is that I'm losing my CSS styles and images or any links that are in the HTML which are relative links. Instead of being relative to /~user/scripts, I supposed they're trying to be relative to /~user/list/foo/ABC/XYZ I'm not sure how to phrase the question, but does anyone have an idea on how to make my URLs be of the form /~user/list/foo/ABC/XYZ but have the script run from /~user/scripts and all links in the HTML that is output be relative to /~user/scripts where it was ran from. I'd like to go to http://www.example.com/~user/list/foo/ABC/XYZ instead of http://www.example.com/~user/scripts/list.php?sort=foo&gn=ABC&dn=XYZ even though the script will always be located at /~user/scripts/list.php . Thanks for any help, and I'll be glad to rephrase if I'm not so clear, Weldon wjsams@xxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx