Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: ocean10000
I'm trying to make sure all my url issues are non existent (read: supplemental hell).
So far I have:
http://example.com redirecting to http://www.example.com
http://example.com/test/ redirecting to http://www.example.com/test
http://example.com/test.asp?t=1 redirecting to http://www.example.com/test.asp?t=1
My problem is...
I can't redirect:
http://www.example.com/default.asp to http://www.example.com
FireFox says there is in infinite redirect, and it can't continue.
Anyone have any suggestions?
[edited by: encyclo at 3:04 pm (utc) on May 10, 2007]
[edit reason] switched to example.com [/edit]
There's only 3 options in my view:
IIS, which is not possible on shared hosting
ISAPI, which again is not an option if you're on shared hosting
or if you are having problems because search engines have indexed www.example.com and www.example.com/default.asp as identical then you should re-save the default.asp file as index.asp (as an example) and do a 301 redirect to the root.
Then go through your site thoroughly and make sure there are no direct links to default.asp and instead things link to the root.
It is possible however (and worthwhile) to 301 redirect http://example.com/default.asp to http://www.example.com
Hope this helps
and do some pretty sophisticated things using...
It is pretty much what Isapi filters do but within .NET itself.
You can 301 redirect http://www.example.com/default.asp to http://www.example.com/ just by checking for the capital (if 'default.asp' then redirect, if 'Default.asp' then dont.)
Of course, it's not 100% perfect, because http://www.example.com/Default.asp exists as a duplicate but you're not likely to be linking internally using a capital letter anywhere in your website and most likely neither is anyone else.
[edited by: Panic_Man at 9:23 pm (utc) on May 26, 2007]