Welcome to WebmasterWorld Guest from 54.167.76.176

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

I want my index.php not to redirect to root domain

index.php, .htaccess

     

rajit197

5:49 am on May 12, 2010 (gmt 0)

5+ Year Member



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

6:30 am on May 12, 2010 (gmt 0)

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



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

6:56 am on May 12, 2010 (gmt 0)

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month