• Hi all,
    I would like to create a frontpage for my website without using WP, with a enter button that send to the first page of the theme.

    Example:
    – Without frontpage: https://www.example.com
    – With external frontpage: https://www.example.com (my frontpage), click a link and go to https://www.example.com/oldhomepage_WP, so the frontpage of the WP theme

    I edit the .htaccess adding, before index.php, my page name (index.html).
    And in my index.html I put in the button href=”index.php” and also “www.example.com/index.php”
    But I still get stucked to my frontpage and I can’t access to the frontpage of the theme!

    How can I figure it out?

    Thank you all!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    The best way to do this would be to create your home page as index.html, then add the following to your .htacess

    DirectoryIndex index.html

    Note that having an index page that isn’t your main website is bad for SEO.

    Kind regards
    Jamie

    Thread Starter mircofragomena

    (@mircofragomena)

    Hi Jamie,

    I edited the .htaccess to give priority to index.html and then index.php but when I press the link to index.php from .html it re-load the index.html like in a loop!

    What the problem can be?

    Hi,

    Ah yes. I can see that would be an issue, apologies. The next thing to do is place WordPress in a sub folder say your domain /wp

    Kind regards
    Jamie

    Thread Starter mircofragomena

    (@mircofragomena)

    Hi,
    and thank you again for your reply!

    Does move my WP folder in a sub-folder will mess up all my links, medias and blabla?

    And which is the folder that I should move?
    WP-content or also the pages that are in the root (for example, the index.php)

    Thank you so much again!

    Hi,

    If you move the entire folder you will also need to update your WordPress url. The easiest way is to add the following to your wp-config.php

    define(‘WP_HOME’,’https://example.com/wp’);
    define(‘WP_SITEURL’,’https://example.com/wp’);

    Kind regards
    Jamie

    Thread Starter mircofragomena

    (@mircofragomena)

    Hi,

    I moved all the files in public_html folder into public_html/wp.
    I just left index.html (my new frontpage) and .htaccess.

    Now if I click “Enter” from the frontpage it took me to the index.php of WP.
    But this one has all the links (page, articles and medias) messed up!

    How can I repair it?

    Thank you so much!

    Hi,

    Did you change the WordPress installation url as per this guide? https://codex.www.ads-software.com/Changing_The_Site_URL

    Kind regards
    Jamie

    Thread Starter mircofragomena

    (@mircofragomena)

    Hi,

    yes I did!
    But didn’t worked.
    The dashboard is loaded and works, but pages, posts and media miss some documents and links.

    I also tried to regenearate all the permalinks and link thanks to a plugin but nothing good happened!

    Where is the issue?!

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirect in loop (.htaccess)’ is closed to new replies.