• Hi. I need the following code in my root .htaccess file to make my regular site work. I have WordPress installed in its own directory (with no .htaccess) but with this code in the root WordPress won’t work (shows a 403 forbidden message on every page). Any ideas?

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.html [NC,L]

Viewing 1 replies (of 1 total)
  • hi ivcatalina,
    Create .htaccess file and paste below code on it. This .htaccess file must be placed at the root.(inside public_html)

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘403 Forbidden with htaccess Rewrite’ is closed to new replies.