please check mod_rewrite
gesf Active member Jun 30, 2005 #2 Environment variables inside %{}. Example: Code: RewriteCond %{HTTP_HOST} ^([^.]+)\. RewriteCond %1 !^www$ [NC] RewriteRule ^(.*)$ http://www.whatever.com%{REQUEST_URI} [R,L] So, what you need is probably %{SCRIPT_NAME}
Environment variables inside %{}. Example: Code: RewriteCond %{HTTP_HOST} ^([^.]+)\. RewriteCond %1 !^www$ [NC] RewriteRule ^(.*)$ http://www.whatever.com%{REQUEST_URI} [R,L] So, what you need is probably %{SCRIPT_NAME}