• Resolved agnkol

    (@agnkol)


    I’ve seen a lot of posts about that topic, but none of them solved my problem.
    What I have is 403 Forbidden error on my main page:
    https://www.smgl.com.pl/stronawww/

    Other pages can be accessed without problems:
    https://www.smgl.com.pl/stronawww/witaj-swiecie/

    It’s a clean wordpress install in a domain subfolder.

    Permisions on folders is set to 755 and on files to 644.
    .htaccess:
    DirectoryIndex index.php
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

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

    # END WordPress

    Can someone help please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there. Where is the htaccess file located? Have you installed WordPress inside the /stronawww directory? If WordPress is installed in /stronawww and that’s where your htaccess file is also located, try removing /stronawww from your BEGIN WordPress area.

    Thread Starter agnkol

    (@agnkol)

    HI Michael,

    Thank you for answering.

    Yes, I’ve installed wordpress in /stronawww directory and that’s where the .htaccess is located.

    I’ve removed the bit you suggested, but it didn’t change anything ??

    DirectoryIndex index.php
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    # 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

    Any other ideas?

    I’m not sure everything else in there is necessary besides what’s inside WordPress area. Could you try removing everything else?

    Thread Starter agnkol

    (@agnkol)

    I’ve have tried but again without results…

    # 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

    Thread Starter agnkol

    (@agnkol)

    I managed to solve the issue.
    The problem was due to the fact that the folder in root was called “StronaWWW” not “stronawww”….

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘403 on home page’ is closed to new replies.