I am trying to change the URL of a Joomla site in browser my original URL is likeexample.com/marketsite/abcand I want to change it to abc.example.com/marketsite/abcI am using following code in Htaccess fileRewriteEngine OnRewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]RewriteCond %{REQUEST_URI} !^/index\.phpRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^marketsite/([^/]+)/?$ http://$1.%{HTTP_HOST}/marketsiteIt is redirecting the site to subdomain and changing the URL but site is not not working now which was working onexample.com/marketsite/abc
URL masking to subdomain redirecting to subdomain
htaccess;subdomain;url rewriting