homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
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?
JamieEff




msg:4585351
 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

Jamie

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

 

lucy24




msg:4585433
 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