• Resolved hellius1

    (@hellius1)


    Hi I am having a little problem after using permalinks, the https version of the site shows the Apache start page. On the http version, the site and all permalinks work fine. I also want to say that without using permalinks, the site on http and https works well. I am using CentOS 8

    My .htaccess

    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    

    My httpd.conf

    
    IncludeOptional conf.d/*.conf
    <VirtualHost *:443>
        DocumentRoot "/var/www/wordpress"
        ServerAlias www.example.com
        <Directory "/var/www/wordpress">
            allow from all
            Options None
            Require all granted
        </Directory>
        SSLEngine on
        SSLProtocol +TLSv1.1 +TLSv1.2
        SSLCertificateFile /var/ssls/cazzy_store.crt
        SSLCertificateKeyFile /var/ssls/cazzy.key
        SSLCACertificateFile /var/ssls/cazzy_store.ca-bundle
    </VirtualHost>
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Add :AllowOverride All” to the <Directory” block for the VirtualHost. The default is “none”, so .htaccess is ignored. Restart/reload Apache after making the change.

    Thread Starter hellius1

    (@hellius1)

    .htaccess file is not being ignored, but I added your rule to the code anyway, and unfortunately this did not solve the problem

    My site – http://cazzy.store/

    My site with https – https://cazzy.store/

    • This reply was modified 5 years, 1 month ago by hellius1.
    Thread Starter hellius1

    (@hellius1)

    I solved the problem by adding this to my .htaccess file

    <IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymLinks
    </IfModule>

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

The topic ‘https gives the Apache start page’ is closed to new replies.