mod_rewrite Help Needed

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-20-2006
Bosh
 
Posts: n/a
Default mod_rewrite Help Needed

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


  #2 (permalink)  
Old 03-20-2006
Robert Ionescu
 
Posts: n/a
Default Re: mod_rewrite Help Needed

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:46 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0