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