Mobile app version of vmapp.org
Login or Join
Shanna517

: 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

@Shanna517

Posted in: #Htaccess #Subdomain #UrlRewriting

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

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Shanna517

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme