This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Subdomain Rewrite Problem
Author
Message |
droid01
Newbie


Joined: 04 August 2010
Posts: 9
Posted: 26 August 2010 at 2:29pm

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
Posts: 10519
Posted: 27 August 2010 at 4:11am

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
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
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