countervail
Member
Posted 4 months ago #
This might not be a wordpress question, but an .htaccess question maybe. I'm not too entirely sure.
However though. Let's say my page is www.example.com and it redirects to the latest post, but it still says www.example.com in the URL bar.
Is there a way to make it, so in the URL bar it'd say www.example.com/?p=*latestpost* instead of www.example.com
Thanks
jonradio
Member
Posted 4 months ago #
Best way that I can think of is to create an index.html file outside of WordPress, in the root, that redirects to http://www.example.com/?p=*latestpost*
For this to work, you are going to have to "fool" WordPress by telling it that the home page of your site is a dummy Page you create and will never been seen by anyone.
Caveat: I have never tried this, but it should work. It also depends on your web hosting being set so that index.html has "high priority" than index.php, in terms of what is delivered when you say http://www.example.com 99% of web hosting is set so that this will work.