• Resolved cdweeks

    (@cdweeks)


    Thank you for this great plugin.
    I am curious, why do you have to resave Permalinks twice after import? And does this not replace the htaccess file, wiping prior security settings?
    I recently imported a site and, after a few minutes realized that the htaccess file was different from the one I exported from. I had to go grab the old htaccess file and replace it via ftp. Is this normal or did something go wrong?
    Thanks.

    Also out of curiosity what would happen to anyone trying to access the site during import?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yani

    (@yaniiliev)

    @cdweeks

    Permalinks resaving needs to happen so that .htaccess file is regenerated.
    WordPress puts its rules between two hashtags:

    
    # BEGIN WordPress
    # END WordPress
    

    The code outside these tags is persistent and does not change when saving permalinks.
    Some plugins have their own hashtags for their own rewrite rules.

    htaccess file is not moved between WordPress installs. We expect that plugins will regenerate htaccess when WordPress saves permalinks structure.

    You most likely have your own custom rules that were added to htaccess. Before adding them to your new site, make sure that they will be supported on your new server.

    Anyone trying to access the site during import will see that the site is under maintenance for a very short period of time when updating the database towards the end of the process. Before that, they will still be able the browse the site but will see the old site.

    Thread Starter cdweeks

    (@cdweeks)

    Great, thank you so much for the explanation!

    Helpful for newbies like me would then just be a note that comes up during the export process that the htaccess file is not part of the export/import process, and if we have any security plugins running it might be helpful to deactivate them before backup and reactivate after import.

    • This reply was modified 6 years, 7 months ago by cdweeks.
    Plugin Author Yani

    (@yaniiliev)

    @cdweeks

    Thank you! We have this on our help site but since you have not seen it, I need to find a better place to put it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks and .htaccess security’ is closed to new replies.