This is a discussion on mod_rewrite Help Needed within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I am a complete novice when it comes to apache configuration and would welcome any assistance - basically I want ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I am a complete novice when it comes to apache configuration and would welcome any assistance - basically I want to do a mod_rewrite when somebody requests http://control.mydomain.com to send it to a completely different URL. I understand that I need a mod_rewrite statement or two in my .htaccess file but have absolutely no idea how to code it even after searching endlessly on google. Kind Regards Neil |
|
|||
|
Bosh wrote:
> requests http://control.mydomain.com to send it to a completely different > URL. What you need depends upon if other domains are pointing on the same location where the .htaccess file is located. Usually a simple redirect would look like RewriteEngine on RewriteRule ^ http://completely-different [R=301,L] -- Robert |