Webpage redirection is not working, For example from http://example.com to http://www.example.com is not working either with the built-in 301 redirect, or
typing it in by hand, or using mod_rewrite.Any solutions please .![]()
![]()
Webpage redirection is not working, For example from http://example.com to http://www.example.com is not working either with the built-in 301 redirect, or
typing it in by hand, or using mod_rewrite.Any solutions please .![]()
![]()
Is mod_rewrite installed?
Have you checked to see whether the 302 redirect is actually coming back? (use one of the public checkers to see what headers come back).
You may have to redirect example.com/ rather than example.com.
Redirection works fine here ...
YA mod_rewrite installed, but redirection is not working here
Try the following:
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.newdomain\.com [NC]
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
this will permanently redirect everything except www.newdomain.com to www.newdomain.com
Last edited by adept2003; 04-26-2005 at 03:19 AM.