• Hello,
    i have a problem when i try to link domain to my subsites.
    I think i have a problem with .htaccess file, becouse:

    When i put this to .htaccess:

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /2019/
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    # END WordPress

    # php — BEGIN cPanel-generated handler, do not edit
    # Set the “ea-php54” package as the default “PHP” programming language.
    <IfModule mime_module>
    AddHandler application/x-httpd-ea-php54 .php .php5 .phtml
    </IfModule>
    # php — END cPanel-generated handler, do not edit

    My main site http://www.sostanj.info/2019/ works ok, but i get an error 500 on subsite http://www.pd-sostanj.si

    But if i put clasic .htaccess file like this:

    # 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

    Then my main site http://www.sostanj.info/2019 links are not working anymore, but subsite http://www.pd-sostanj.si is working fine.

    Anyone has a clue what is buging me? 🙂

    Thank you so much in advance guys…

    Best regards,
    Marko

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error 500 and then 404’ is closed to new replies.