Forums

[resolved] htaccess Permalink (2 posts)

  1. mpjltd
    Member
    Posted 1 year ago #

    Hello there... i have a problem with setting up the permalink.
    After a fresh install of wordpress in my root dir, no plugins I went to permalinks and changed the structure to /%postname%/. when I press the button to save the settings, the css of the admin dashboard is gone and when I try to login I am getting the error

    You don't have permission to access / on this server

    WordPress is creating an htaccess file with this content:

    # 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

    when I delete the htaccess file I am able to see the frontend, able to login to backend but when I click on permalink the css of the admin dashboard is gone and when I try to login I am getting the error

    You don't have permission to access / on this server

    on one of my other sites it is working but the content of the htaccess file is:

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

    Is someone able to explain whats is wrong ?
    does this have something to do that I have made the install oder http://www.domain.com and not domain.com ?

  2. mpjltd
    Member
    Posted 1 year ago #

    For People with same issue:
    Make Sure the Httpd Settings are set:

    WebServer mod_rewrite(on)
    PHP safe_mode(off),

    Please Close this topic

Topic Closed

This topic has been closed to new replies.

About this Topic