Topic: Subdomain Rewrite Problem
|

|
| Author |
|
droid01 Newbie

Joined: 04 August 2010
Online Status: Offline Posts: 9
|
| Posted: 26 August 2010 at 2:29pm | IP Logged
|
|
|
Hello, We are having difficulty getting a subdomain redirect to work properly. Here is what we currently have. What we need to have happen is to have the files on the subdomain point to their new location on the main domain. Thanks!
RewriteCond Host: ^subdomain\.domain\.com RewriteRule (.*) http\://www\.domain\.com$1 [I,L,RP]
RewriteRule /old_folder_name(.*) /new_folder_name/new_sub_folder$1 [I,L,RP]
Here is what we have at the top of the httpd.ini file:
[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 # Block external access to the httpd.ini and httpd.parse.errors pages RewriteRule /httpd(?:\.ini|\.parse\.errors).* [F,I,O] # Block xml file access #RewriteRule [^\.]*\.xml [F,I,O] # Block external access to the Helper ISAPI Extension RewriteRule .*\.isrwhlp [F,I,O]
droid01
|
| Back to Top |
|
| |
Anton Admin Group

Joined: 30 January 2007 Location: Ukraine
Online Status: Offline Posts: 10489
|
| Posted: 27 August 2010 at 4:11am | IP Logged
|
|
|
Please try to have it like this:
RewriteCond Host: subdomain\.domain\.com
RewriteRule /old_folder_name(.*) /new_folder_name/new_sub_folder$1 [I,RP]
RewriteCond Host: subdomain\.domain\.com
RewriteRule (.*) http\://www\.domain\.com$1 [I,RP]
If it doesn't work, please tell what request you make and what result you expect to get.
__________________ Regards,
Anton
|
| Back to Top |
|
| |
|
|
If you wish to post a reply to this topic you must first login
If you are not already registered you must first register
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum
|