Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Subdomain Rewrite Problem Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
droid01
Newbie
Newbie


Joined: 04 August 2010
Online Status: Offline
Posts: 9
Posted: 26 August 2010 at 2:29pm | IP Logged Quote droid01

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 View droid01's Profile Search for other posts by droid01
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 27 August 2010 at 4:11am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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