Comments on: Creating subdomains from directories using mod_rewrite in Apache .htaccess https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess Research and development Fri, 25 Jan 2013 06:19:21 +0000 hourly 1 https://wordpress.org/?v=5.5.1 By: Nirav https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-579402 Fri, 25 Jan 2013 06:19:21 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-579402 how to access direct throught sub domain of main domain using .htaccess in php?

]]>
By: addwizz admin https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-503377 Sat, 24 Nov 2012 12:36:27 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-503377 Dear sir, I need to Create the Sub Domains Using .htaccess with out use of my Domain Control Panel it is Possible…. Pls let me know how?

]]>
By: Sublinks - XHTMLforum https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-299487 Tue, 26 Jul 2011 10:28:42 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-299487 […] nicht mehr sicher, aber lassen sich nicht mithilfe von mod_rewrite virtuelle subdomains anlegen? creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess […]

]]>
By: geekgirl4christ https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-166687 Tue, 16 Jun 2009 19:54:31 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-166687 This works great! It fixed my problem perfect! Thank you! 🙂

]]>
By: Snippissimo https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-115777 Sat, 01 Nov 2008 00:02:49 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-115777 Without adding wildcard subdomains to the DNS I’m not sure how this would work.

]]>
By: Al V https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-99398 Fri, 12 Sep 2008 17:11:09 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-99398 This solution is exactly what I need and have been unable to find. I added my site information without success.

Your solution was pasted into my Document Root “.htaccess” file under

RewriteEngine on

All instances of “hm2k.org” were replaced with “mydomainname”

“www|example” was replaced with “mydomainname”

“REQUEST_FILENAME” was replaced with “REQUEST_subdomainname”

After checking and rechecking, I am unable to determine what I am doing wrong. Any help will be appreciated.

Thanks,

Al

]]>
By: OMG https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-82501 Fri, 11 Jul 2008 00:50:43 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-82501 Omg it doesn’t work … searching everywhere and found a big nothing about how to make SubDomains with the help of the .htaccess if you don’t have access to httpd.conf. When I tipe http://subdomain.mydomain.com I need it to go to htdocs/subdomain/

]]>
By: ivailo sym https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-53365 Mon, 24 Mar 2008 17:04:50 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-53365 don’t work
why?

]]>
By: Rickywh https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-23662 Thu, 15 Nov 2007 23:06:02 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-23662 I tried this just now, replaced hm2k.org in the first line with my domain, then ran phpinfo() to get my DOCUMENT_ROOT, which is set to /home/rickywh/domains/mydomain.com/public_html

i then changed set this path in the three lines that are relevant and saved it to a file called .htaccess, when i visited my main domain by going mydomain.com, i got internal server error message. but when trying to go to subdomain.mydomain.com, it displayed the message about it being a shared website that hast multiple users or something, so i guess it half works. hehe

]]>
By: md5hash https://hm2k.org/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess/comment-page-1#comment-11912 Thu, 23 Aug 2007 08:35:18 +0000 http://www.hm2k.com/posts/creating-subdomains-from-directories-using-mod_rewrite-in-apache-htaccess#comment-11912 i cant get it to work

i want this http://subdomain1.portal/ from http://portal/subdomain1/

]]>