Welcome to WebmasterWorld Guest from 54.198.147.221

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

rewrite the main index page?

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

New User

5+ Year Member

joined:June 12, 2012
posts: 10
votes: 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

Jamie

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

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

Senior Member from US 

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

joined:Apr 9, 2011
posts:13834
votes: 484


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".
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members