Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

rewrite the main index page?



12:56 pm on Jun 18, 2013 (gmt 0)

Hi there folks

I have a rewrite set up like this:

RewriteCond %{HTTP_HOST} !^www\.example\.co.uk
RewriteRule (.*) http://www.example.co.uk/$1 [R=301,L]

How would I go about either adding to this or modifying it so that any request for the index.php page always shows as http://www.example.co.uk/index.php rather than http://www.example.co.uk


Thanks in advance


[edited by: phranque at 8:39 pm (utc) on Jun 18, 2013]
[edit reason] exemplified domain [/edit]


6:18 pm on Jun 18, 2013 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

You need the generic index.xtn redirect. This has been posted, oh, a few thousand times over the past ten years.

There's nothing special about the top-level index page. The index redirect will cover all requests for explicit "index.php".

Featured Threads

Hot Threads This Week

Hot Threads This Month