• I may sound ignorant, but: I have installed 1.2 in a folder under the root folder (…/wp). In the root folder I have my old static blog (index.htm). I am now ready to make the switch. How can I redirect in a way that when pointing towards https://www.carnetsdetoile.ca it gets https://www.carnetsdetoile.ca/wp instead?
    After long hours of reproducing the old site, it’s frustrating to get halted so close to the end. So, if someone could give a hand, I’d appreciate.
    JP

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can edit the index.html file and put:
    <html><head>
    <META HTTP-EQUIV=Refresh CONTENT="0; URL=https://www.carnetsdetoile.ca/wp">
    </head>
    <body></body>
    </html>

    This is just one method… using HTML Meta Refresh.

    Thread Starter jpierre

    (@jpierre)

    OK, but wouldn’t that force me to keep the old index.htm?

    Yes, or you can create a .htaccess redirect.
    https://www.freewebmasterhelp.com/tutorials/htaccess/2

    Thread Starter jpierre

    (@jpierre)

    phpprincess: thanks for the tips. For now I’ve used your first method, and it works, though one has the time to see the old page passing before the browser gets to the new one. But it will give me some time to explore the .htaccess method. In the mean time it at least allows all the new material to be viewed.
    JP

    jpierre, if you want the old page to stay up for a longer amount of time before redirecting to your new WP site, simply change the CONTENT=”0; part of the code to whatever amount of time (in seconds) that you like. If you want it to stay up for 30 seconds, for example, simply change the line to say CONTENT=”30;
    You could then include some text in the body tag explaining the site switch and that they will be redirected.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘sub-folder vs root folder for url’ is closed to new replies.