I am looking to create a 301 redirect from my www(dot)name.com to just name.com
I run a dedicated windows server so I cant use htaccess, I also dont pay for mod rewrite. So how can I redirect the www to non www.
I can write asp that does the 301, but how do I detect that there is a www in the url? Do I just read the current page name and do a instring function to check? Then redirect to itself without the www if needed....
Any easier way to do this? This way I would have to have this code on all my pages to jump out of www when needed.
I run a dedicated windows server so I cant use htaccess, I also dont pay for mod rewrite. So how can I redirect the www to non www.
I can write asp that does the 301, but how do I detect that there is a www in the url? Do I just read the current page name and do a instring function to check? Then redirect to itself without the www if needed....
Any easier way to do this? This way I would have to have this code on all my pages to jump out of www when needed.
Last edited:




