Hi, Iam not a unix guy, Recently we shifted our servers to a new server for a particular section of our site.
so the new urls became:
server.mydomain.com/foldera From mydomain.com/foldera
Now , we need to redirect all contents from
mydomain.com/foldera
to
server.mydomain.com/foldera
I tried this code
[code]
RewriteCond %{HTTP_HOST} ^mydomain.com/foldera
RewriteRule (.*) http://www.server.mydomain.com/foldera/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.mydomain.com/foldera
RewriteRule (.*) http://www.server.mydomain.com/foldera/$1 [R=301,L]
I dont know how this happened.,
But i added
[code]
Redirect 301 /foldera http://server.mydomain.com/foldera [code]
in the .htacess contents
and now the match works :D
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.