6
Contributors
6
Replies
42
Views
2 Years
Discussion Span
Last Post by tdrosiadis
0

Unfortuantely, DNS cannot perform an actual redirect.

Kindly assist me how it can be accompalished for all pages.

You need server side scripting, or the rediret can be done at the web server level as well (two websites, one site dedicated for the redirect to the other, not a great solution). Are you running the site with server side (php, asp.net, jsp, etc..) code?

0

Try inserting the following code in your <head> </head> tag:

<meta http-equiv="refresh" content="0; url=http://www.example.com/">

"content" specifies how many seconds elapse before you are forwarded

Edited by mridul.ahuja

0

redirection instruction to your .htaccess file:

... assuming that there is php here..

<meta http-equiv="refresh" content="0; url=http://www.example.com/">

that would work if there were actually two web sites. oh and you'd have to do that for every page.

0

If the only thing you try to achieve, is to have the www writing of your url to redirect to the non www versiin (aka canonicalizstion of your domain url) then the easiest way is to do it is through the plesk, cpanel etc by setting the desired version in the domain settings. Provided,of course that you have such access.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.