homepage Welcome to WebmasterWorld Guest from 23.22.173.58
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

    
I want my index.php not to redirect to root domain
index.php, .htaccess
rajit197

5+ Year Member



 
Msg#: 4131212 posted 5:49 am on May 12, 2010 (gmt 0)

Hi all webmaster,

I've searched over the forum about this before also but I can only find solution to the opposite problem.
I have installed wordpress in my domain but I've also placed an index.html as a landing page which has the priority and is being shown ...
However when I try to access my http://example.com/index.php (wp modified site)is redirects to the domain root http://example.com which I don't want ..

So, my question is how to not make http://example.com/index.php redirect to the root domain.. is it possible?

PS: I also deleted RewriteRule . /index.php [L] from .htaccss file as its supposed to redirect the index.php page to the root domain but it's not working eiter ...

Hoping for an answer ...

[edited by: jdMorgan at 1:27 pm (utc) on May 12, 2010]
[edit reason] No URLs, please. See Terms of Service. [/edit]

 

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4131212 posted 6:30 am on May 12, 2010 (gmt 0)

The canonical URL is the one ending with "/". That's the one that searchengines will prefer to index. I assume requesting that URL results in seeing the index.html file contents.


I also deleted RewriteRule . /index.php [L] from .htaccess file as its supposed to redirect the index.php page to the root domain.

No. That line rewrites incoming URL requests so that the index.php file can serve the content.

Are you saying you still want to be able to view both index.php as well as index.html? This is possible, though might confuse visitors that you have two index pages. I'd be putting the blog in a folder in this case, with the index.html page in the site root.

rajit197

5+ Year Member



 
Msg#: 4131212 posted 6:56 am on May 12, 2010 (gmt 0)

yes I still want to be able to view both index.php as well as index.html? If possible please tell me how ?

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