Start New Discussion Reply to this Discussion RewriteRule For New Domain
PaliGap
Newbie Poster
11 posts since May 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
james.newell
Light Poster
33 posts since Mar 2010
Reputation Points: 11
Solved Threads: 3
Skill Endorsements: 0
james.newell
Light Poster
33 posts since Mar 2010
Reputation Points: 11
Solved Threads: 3
Skill Endorsements: 0
Ya james is right but need to add one more RewriteCond:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain-one\.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.domain-one\.com$ [NC]
RewriteRule ^cgi-bin/38837728.cgi$ http://somwhere-else.net/cgi-bin/abc/38837728.cgi [L,R=301]
I think, this will solve your rewrite rule problem.
---
Manoj
manojsamtani
Light Poster
37 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
That is when you resolve the domain with www. if it is without www, just put vice versa.
farooqwani19
Newbie Poster
2 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Please read the question again :) its for with www!!!
manojsamtani
Light Poster
37 posts since Apr 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0767 seconds
using 2.76MB