: URL masking to subdomain redirecting to subdomain I am trying to change the URL of a Joomla site in browser my original URL is like example.com/marketsite/abc and I want to change it to
I am trying to change the URL of a Joomla site in browser my original URL is like
example.com/marketsite/abc
and I want to change it to
abc.example.com/marketsite/abc
I am using following code in Htaccess file
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^marketsite/([^/]+)/?$ .%{HTTP_HOST}/marketsite
It is redirecting the site to subdomain and changing the URL but site is not not working now which was working on
example.com/marketsite/abc
More posts by @Shanna517
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.