mbdungo Posted February 7, 2013 Posted February 7, 2013 Mam/Sir, http://www.firm.tk/ has test/ directory and it's already had an index.htm file. So, you could check it at: www.firm.tk/test/ The things that I've did are, I add a *.firm.tk subdomain and paste this code on the .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} !^www\. RewriteCond %{HTTP_HOST} ^([^/.]+)\.firm\.tk$ RewriteRule ^ %1%{REQUEST_URI} [L] And that's all, but why test.firm.tk subdomain doesn't rewriting yet to www.firm.tk/test/ directory? Did I do something wrong? Or a HelioHost Support need to mentioned first to be able that domain to perform a wildcard subdomain? Please help and teach me a little bit to correct what I am doing, if I'm coding wrong, thank you!
Shinryuu Posted February 7, 2013 Posted February 7, 2013 Here's a simple video on wildcard subs in cPanel.http://www.youtube.com/watch?v=_cNFYMO1oC4Also if you go into your subdomain panel, you can setrewrite rules for subdomains through cPanel. Like Ihave done here: 1
Recommended Posts