Forum Moderators: coopster

Message Too Old, No Replies

re-directing www.foo.com/widget_dir/index.php

to www.foo.com/widget_dir/

         

5x54u

4:04 pm on Oct 28, 2005 (gmt 0)

10+ Year Member



I have a dupe issue wherein foo.com/widget_dir/index.php is creating a dupe.

All of my internals links reference www.foo.com/widget_dir/

#1 Is the above link structure (www.foo.com/widget_dir/) correct? I believe it is but would like a definitive fact one way or the other if possible.

#2 What is the best way to redirect widget_dir/index.php to widget_dir? I am on a IIS box.

Would I place a 301 permanent at the start of index.php redirecting to /widget_dir/?

Thank you for replies

mcibor

5:02 pm on Oct 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if you don't specify the direct link, then the first is opened
index.htm
then following
index.html
index.shtml
index.php

I don't know if other indexes are being processed as well
As for redirecting I'm not sure what do you want to accomplish. Is it url rewrite? If yes, then you can wait here until someone posts answer or check the apache forum for url rewrite. it should be similar on IIS!

Best regards
Michal Cibor

5x54u

5:07 pm on Oct 28, 2005 (gmt 0)

10+ Year Member



Thank you - I understand the order in the dir if nothing is specified in link on IIS.

G is filtering /widget_dir/index.php as dupe to /widget_dir/ and I need to know the best way to address this issue on a IIS box.

IIS does not have re-write, I could be wrong, if it does can someone point me there.