url rewriting
Posted: Sun Dec 04, 2011 8:07 pm
I need to use .htaccess to rewrite an url:
http://sd0008/test/index.php?fa=12&er=12&wewe=12
Should become:
http://sd0008.marcel.local/test/index.p ... 12&wewe=12
I myself had the following:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !sd0008.marcel.local
RewriteRule ^ http://sd0008.marcel.local%{REQUEST_URI} [L,R=301]
It is working fine. But however, i don't want to have 'sd0008' hard coded.
http://sd0008/test/index.php?fa=12&er=12&wewe=12
Should become:
http://sd0008.marcel.local/test/index.p ... 12&wewe=12
I myself had the following:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !sd0008.marcel.local
RewriteRule ^ http://sd0008.marcel.local%{REQUEST_URI} [L,R=301]
It is working fine. But however, i don't want to have 'sd0008' hard coded.