Jump to content

htaccess code killing domain searches


Recommended Posts

Hi,

 

Since updating to 7.5.0 I found domain searches were not completing and just hanging. After a lot of problem solving it came down to some .htaccess code redirecting index.php to root. It's common code for websites and always worked but suddenly WHMCS 7.5.0 doesn't like it:

###
# redirect to www
###
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

 

Has anyone else experienced this or can you test if your domain search works with this code on your websites?

 

Also, I noted it's much slower on PHP5.6 since the update, I am hoping 7.1 will speed this up considerably but waiting for another app to be compatible first. Can anyone else confirm they are finding 7.5.0 slow on PHP5.6?

 

Cheers guys.

Link to comment
Share on other sites

I pasted the wrong code, that was for redirecting non-https > https. The code I'm having issues with is:

###
# Redirect index.php to root
###
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]
</IfModule>

Thanks

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated