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

    Jan 8, 2015
    Likes Received:
    Trophy Points:
    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?

    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!
    <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]
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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...

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