View Full Version : adding a subdomain
per_for.closer
6-6-02, 10:11 PM
adding a subdomain to a subdirectory
how do i do it?
==============
nm i got it down
.htaccess file
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} store.impact-torah.com
RewriteCond %{REQUEST_URI} !store/
RewriteRule ^(.*)$ store/$1 [L]
RewriteCond %{HTTP_HOST} store.impact-torah.com
RewriteCond %{REQUEST_URI} !store/
RewriteRule ^(.*)$ store/$1 [L]
==============
nm, its not working! Some one help
This should be all you need:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} store.impact-torah.com
RewriteCond %{REQUEST_URI} !store/
RewriteRule ^(.*)$ store/$1 [L]
Well, that and the CNAME (set up properly) :)
per_for.closer
6-7-02, 10:27 AM
Argh! How do i set up the cname? ( i feel like the short bus kid )
==========================================
I editted the CNAME added:
Alias: store Hostname: impact-torah.com.
still no luck
per_for.closer
6-7-02, 01:02 PM
Also how do i turn on wildcards? And if i do can i still have store.impact-torah.com./?
esccanada
6-7-02, 04:18 PM
wait upto 12 hours for the DNS update?
per_for.closer
6-7-02, 05:32 PM
i figured it out... after 2 hours or so
its:
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} store.impact-torah.com
RewriteCond %{REQUEST_URI} !store/index.php
RewriteRule ^(.*)$ store/index.php$1 [L]
And once the cname is set...your good to go!
The wildcard * in the alias field of a CNAME would allow for anything.yoursite.com to work :)
per_for.closer
6-8-02, 10:53 AM
i tried, but i'm told name is already in use...
and * doesn't show up the only two aliases i see are
www and store
You might need to fire off an email to support@powweb.com about that. If it's not there I don't know how it could already be in use.
Did you do this:
*
yoursite.com.
???
per_for.closer
6-8-02, 04:16 PM
Hrm... it's working now, i did try * as alias and host impact-torah.com, tryed it again, and now poof it's working....
:)
Another question: How do i add another subdomain?
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} store.impact-torah.com
RewriteCond %{REQUEST_URI} !store/index.php
RewriteRule ^(.*)$ store/index.php$1 [L]
RewriteCond %{HTTP_HOST} forum.impact-torah.com
RewriteCond %{REQUEST_URI} !cgi-bin/ikonboard/ikonboard.cgi
RewriteRule ^(.*)$ cgi-bin/ikonboard/ikonboard.cgi$1 [L]
?
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.