Report this

What is the reason for this report?

Fake Subdomain ( htaccess - whm )

Posted on December 28, 2016
BR9

By BR9

Hello,

My english is a little bad

I want to create fake subdomain

but

Digital Ocean :

http://pazarvitrini.com http://test.pazarvitrini.com

another :

http://berkfuat.com http://berk.berkfuat.com http://digitalocean.berkfuat.com

I do not want to create a subdomain for each subdomain via cPanel

I want to do this with fake with htaccess

I hope you understand me

Thank you



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

.htaccess can be used to redirect a user to a specific location and this can be based on what subdomain or file path is requested. Is this what you’re looking to do (a redirect)?

For example, this type of .htaccess file can be used to force www

RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.