Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Wordpress and custom permalinks

Discussion in 'Security' started by shimabuku, Jan 8, 2015.

  1. shimabuku

    shimabuku Registered

    Joined:
    Jan 8, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I have just added an SSL Cert to one of my domains. This domain uses Wordpress and custom permalinks. When I set Wordpress to use default permalinks all https links work as they should but when I set the permalinks to custom all https links throw a 404 error. I came across this post and was wondering if I could do something similar within WHM/cPanel?

    https://wordpress.org/support/topic/solution-https-ssl-certificate-causing-404-error-with-custom-permalinks

    As you can see the poster is using Ubuntu and added the below statements to his default-ssl file. Any help would be greatly appreciated. Thanks!
    Code:
    <VirtualHost _default_:443>
    ServerName <ipaddress>:443
    ServerAdmin webmaster@localhost
    
    DocumentRoot /home/webadmin/public/<website>/public/
    <Directory /home/webadmin/public/<website>/public/ >
    AllowOverride All
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    </Directory>
    
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can modify the SSL VirtualHost for a single domain name using the instructions here:

    Modify Virtualhost Containers With Include Files

    I suggest reviewing the existing VirtualHost in /usr/local/apache/conf/httpd.conf and make changes based on that.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice