MrAdam Posted March 10, 2011 Share Posted March 10, 2011 Hi guys,I was wondering how when you remove www. from the URL using mod_rewrite, can you preserve the RewriteBase?For example: RewriteBase /qa # Rewrite www. requests RewriteCond %{HTTP_HOST} ^www.example.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] When this rewrites the request, "/qa" will be lost. I was hoping to preserve it, so that I don't have to hard-code any paths within the rules.ThanksAdam Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.