.htaccess - Show url of a subfolder as a subdomain with htaccess -


Hope someone can help me find a way to show the URLs of a website folder like a subdomain .

Let's say I have website www.example.com and subfolder www.example.com/sub. Is it possible to show the URL www.sub.example.com instead of www.example.com/sub using the htaccess' url rewrite, without moving the sub folder's resources to the "real" sub-domain? In other words, is it possible to change only the address of the sub folder?

Thank you very much.

"post-text" itemprop = "text">

You can create this subdomain in the Hosting Control Panel, which can be a cleaner method ... you can see the same thread here:

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

c++ - Qt::make_shared for creating QSharedPtr as std::make_shared for creating std::shared_ptr -