0

I have a website that has 10 domain pointers they all point to the master-domain. I use this code in the .htaccess

RewriteEngine On 
RewriteBase / 
RewriteCond %{HTTP_HOST} !masterdomain.com$ [NC] 
RewriteRule ^(.*)$ https://masterdomain.com/$1 [L,R=301] [R,L]

It works but I want https://masterdomain.com/administrator to point to https://licencepointerdomain.com/administrator/*

I tried :

RewriteEngine On 
RewriteBase / 
RewriteCond %{HTTP_HOST} ! masterdomain.com$ [NC] 
RewriteCond %{REQUEST_URI} !^/administrator/?$ [NC]
RewriteRule ^(.*)$ https://masterdomain.com/$1 [L,R=301] [R,L]

what am I doing wrong here?

  • 1
    Please go read [ask]. _“can someone help me on this issue?”_, is not a good way to ask here. You should explain what you already tried, what you came up with during your own research, etc. – CBroe Jun 11 '20 at 08:22
  • @MessageDJ if you are doing Joomla development, please join us at [joomla.se] Stack Exchange. – mickmackusa Jun 12 '20 at 11:13
  • Is this it? https://stackoverflow.com/q/1945568/2943403 – mickmackusa Jun 12 '20 at 11:16

0 Answers0