expertsgerrit
asked on
redirect www.xyz.com to xyz.com and the other way around
Hi,
is there a way to redirect any url of the form www.xyz.com/any_folder/anyfile.php?parameter=any_parameter
to
xyz.com/any_folder/anyfile .php?param eter=any_p arameter
?
And is the xyz.com/..... option compatible with all browsers?
Regards,
G
is there a way to redirect any url of the form www.xyz.com/any_folder/anyfile.php?parameter=any_parameter
to
xyz.com/any_folder/anyfile
?
And is the xyz.com/..... option compatible with all browsers?
Regards,
G
ASKER
where should I put this?
any file that gets visited
some header file?
any file that gets visited
some header file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RewriteEngine On
RewriteCond %{HTTP_HOST} www\.xyz\.com
RewriteRule ^/(.*)$ https://xyz.com/$1 [L,R=301]
This should work