Code Snippets

This is the code snippet to re write the permalinks if they get lost when transferring websites:

Go to existing htaccess file in File Manager on your server

Rename the file htaccessold or something similar

Create a new file called htaccess then copy the code below into that file

Click save can be a file icon on the right.

 

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

This link has added advice on plugins. https://themeisle.com/blog/wordpress-permalinks-not-working/#gref