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.
url rewriting
Moderator: General Moderators
Re: url rewriting
Why are you posting an Apache question in a PHP forum?
Re: url rewriting
Moved to Installation and configuration.
You can use a regular expression to accept valid characters in place of sd008
You can use a regular expression to accept valid characters in place of sd008
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.