homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

rewrite the main index page?

Msg#: 4585349 posted 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]



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

Msg#: 4585349 posted 6:18 pm on Jun 18, 2013 (gmt 0)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved