httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From M A P <>
Subject [users@httpd] RewriteRules with Prestashop and Drupal
Date Thu, 02 Mar 2017 02:16:18 GMT
2 separate needs for 2 web sites...

1) a prestashop 1.6 catalog. The owner asked to change the domain name 
of the site but wanted to keed the old one for legacy purpose... so <> became 
<>  We did a rewriterules :

RewriteRule ^(.+)/$$1 [R=permanent]

This is working fine when typing " 
<>" it is converting to " 
<>"  but if we try to access a specific link: 
" <>" this 
is what we get: "www.newdomain.comindex.php"
and of course, error. The /  is missing. I tried several version :

always the same results! No / after the .com

We use a vhost.conf file for all web site... There is also a .htaccess 
in the root of the prestashop website. Is there a conflict? This should 
be simple... changing a domain for another one. Any help?

2) a drupal website that needs to redirect all sub-domains and extention 
to one domain. In this second case, it's the opposite problem! With the 
same rewrite rule syntax, we end up with //  (2 slash)

So  " <>" or " 
<>"  should redirect to " 
<>" but we have : " 

Of course, Drupal also was a .htaccess file at root level. My vhost.conf 
file is were I put my global site config including the rewriterules.

Hope somebody can resolve these 2 problems! Thanks.


View raw message