Jump to content

WHMCS 7.2: .htaccess RewriteRule not working after upgrading


solver80

Recommended Posts

Hi,

 

I recently upgraded from 6.3 to 7.2 and one of my rewrite rules stop working.

 

All my website links were rewited to open diffrent languages like English: http://www.mypage.co.uk/en/ Spanish: http://www.mypage.co.uk/es/

 

All pages are properly redirecting but not home page. So http://www.mypage.co.uk/en/ and http://www.mypage.co.uk/en/index.php returns 404 Page

 

Here is my code

 RewriteRule ^en/Web-Hosting.htm$ cart.php?gid=1&language=english [NC,L,QSA]
 RewriteRule ^en/Email-Hosting.htm$ cart.php?gid=3&language=english [NC,L,QSA]
 RewriteRule ^en/Domain-Search.htm$ cart.php?a=add&domain=register&language=english [NC,L,QSA]
 RewriteRule ^en/Domain-Transfer.htm$ cart.php?a=add&domain=transfer&language=english [NC,L,QSA]
 RewriteRule ^en/Cart-View.htm$ cart.php?a=view&language=english [NC,L,QSA]
 RewriteRule ^en/(.*)\.php $1.php?language=english [NC,L,QSA] 
 RewriteRule ^en/?$ ?language=english  [NC,L,QSA]
 RewriteRule ^en/(.*) $1 [NC,L,QSA]

 

I know my solution is not perfect but all used to work in WHMCS 6.3

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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