On my site based on WordPress I’ve installation of another software (WHMCS)

WordPress rewriting put 404 on WHMCS pages.

After some changes WHMCS for customer work, but admin area not work.

URL: https://tamainut.com/intranet (work)
URL: https://tamainut.com/intranet/dotcom/ (NOT work)

.htaccess

# 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]

# Begin WHMCS
Options +FollowSymlinks

#Rewrite the URL for WHMCS to always use https except for the whmcs/dl.php file
RewriteCond %{REQUEST_URI} !^/intranet/dl.php [NC]
RewriteCond %{REQUEST_URI} ^/intranet/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://tamainut.com/intranet/$1 [R=301,L]

# Also try activate this but not work 
#RewriteCond %{REQUEST_URI} ^/intranet/dotcom/ [NC]
#RewriteRule ^(.*)$ https://tamainut.com/intranet/dotcom/$1 [R=301,L]

#Rewrite the URL for WHMCS dl area to always use http
RewriteCond %{REQUEST_URI} ^/intranet/dl.php [NC]
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^(.*)$ http://tamainut.com.com/intranet/$1 [R=301,L]

# END WHMCS

</IfModule>
# END WordPress

Read more here: Redirect subdir on htaccess not work (or I don’t know)


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: