Problems with wordpress and .htaccess file

This morning I changed the main directory name in my FTP file browser (the one above the ‘wordpress’ folder) and received many 404 errors. I then updated my permalink in the admin panel, which generated a new .htaccess file.

Ever since then, I’ve been in a constant battle with the .htaccess file. If I include it in the ‘wordpress’ directory, the website doesn’t display at all and comes up not only with 403 errors, but also the actual ‘wordpress’ folder doesn’t display in my online site directory, so I can’t access it.

However, if I delete the .htaccess file, the websites homepage and admin panel re-appear, and every other page has 404 errors.

I’ve tried updating permalinks to a default state via the admin panel, but that just re-generates a new .htaccess file which breaks the website again. I’ve tried numerous fixes to the file all day, and this is the current code I have in it:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ler14/Wordpress%20implementation%201/wordpress/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /ler14/Wordpress%20implementation%201/wordpress/index.php [L]

# END WordPress

Any help would be great, as I’ve spent 9 straight hours trying to fix this for an important university project, and am now at my ends wits!


Read more here: Problems with wordpress and .htaccess file

Leave a Reply

Your email address will not be published. Required fields are marked *