Forum Moderators: phranque

Message Too Old, No Replies

remove index.php from url but keeping the GET variables

         

ibagur

7:05 pm on Oct 28, 2007 (gmt 0)

10+ Year Member



Hi, I got this basic question.

I want this behaviour on a site I'm working

www.mysite.com/index.php?action=something

to be:

www.mysite.com/?action=something

how do I achive this?

Thanks

londrum

7:21 pm on Oct 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



just write it like that, exactly as you have done above, and it should go to the correct place (assuming that index.php is set up as your default directory page)

i have loads of those on my site and they all work okay.

g1smd

1:29 am on Oct 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You could also install the index to "/" 301 redirect code that gets posted here every few days.

That would ensure that the longer "index" URL wouldn't ever be listed in the SERPs.