Forums

.htaccess leads to 403 forbidden (6 posts)

  1. zaphod22
    Member
    Posted 2 years ago #

    I can go through the process fairly effortlessly, and it will create the correct linking structure, but after the .htaccess is created, I get a 403 forbidden error for everything in that directory. I know that it has something to do with the .htaccess file because I can remove it and the problem goes away.

    How does WP handle such URL rewrites, and is there any way to modify that? This is what it gives me:

    # BEGIN WordPress

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

    # END WordPress

  2. samboll
    moderator
    Posted 2 years ago #

    The above is absolutely correct. What "directory" does it keep you out of?

  3. zaphod22
    Member
    Posted 2 years ago #

    I have this on a personal server at the moment, so it is at: localhost/wordpress/

    It won't even let me into the admin panel or any other subdirectory.

  4. samboll
    moderator
    Posted 2 years ago #

  5. paulsjv
    Member
    Posted 2 years ago #

    I had this problem and I added the following line to my .htaccess file on the first line.

    Options +FollowSymLinks

    poof it's all working now :)

  6. mediter
    Member
    Posted 1 year ago #

    anybody care enough to explain why this line soled the problem?

    mine is working now by adding this line. Thank you very much, paulsjv!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags