Ethic Solutions Free Webmaster Tools
     
Webmaster Discussion Forum -  Revenue Sharing Forum  webmaster talk related topic
Revenue Sharing Blog - Create your own
Create your own blog FREE and get 80% Revenue directly from google
Earn more revenue on our site, it's free!

» Free SEO Tools
» Check Page Rank
» Check Page Rank multi datacenter
» Check Fake Page Rank
» Alexa Traffic Rank
» Bulk Page rank Check
» Link Popularity
» Check domain Instantly
» Short url
» MD5 Encrypt
» Meta Tags Extractor
» Surf using Proxy
» Keyword Density Analyzer
» Keyword Analyzer
» Welcome to WMH
Registration at WebmastersHome is completely FREE and takes only a few seconds. By registering you'll gain:
  • Full Posting Privileges.
  • Access to Private Messaging.
Register now
Partner

Text Link Ads
Web Hosting
Flash Tutorials
PHP Scripts
Web Hosting providers
Offshore Software Outsourcing
Web Directory
Software Directory
Your Text Link
Earn More
Simply Add a Post and view ad network advertisement on this post.


Go Back   Webmaster Discussion Forum - Revenue Sharing Forum webmaster talk related topic > Design and Programming Talk > Apache Web Server


Subdomains using .htaccess

Apache Web Server


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-05-2006, 08:41 AM
jimkarter jimkarter is offline
Member
 
Join Date: Apr 2006
Posts: 36
jimkarter is on a distinguished road
iTrader: (0)
Default Subdomains using .htaccess

Can anybody tell me how can we setup subdomains from our .htaccess file instead of httpd.conf file?
Any suggestions please?
__________________
My Sites: add a link directory, add your link directory, various reviews site and epitrope directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Revenue Sharing Ads ( Read More ):

  #2 (permalink)  
Old 12-05-2006, 12:55 PM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,197
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

Hi there

You can try the below code

Code:
#Grab the subdomain from the domain RewriteCond %{HTTP_HOST} ^([^.]+).DOMAIN.COM$ #Make sure the subdomain is not www or example RewriteCond %{1} !^(www|example)$ #Check if the directory actually exists before we go there RewriteCond /home/USER/public_html/%1 -d #This stops it from looping RewriteCond %{REQUEST_FILENAME} !^/home/USER/public_html/ #Finally, this is the actual rewrite RewriteRule (.*) /home/USER/public_html/%1/$1 [Last]

Change the DOMAIN.COM WITH YOUR OWN DOMAIN AND USER WITH YOUR USER NAME

and try

Regards
Jitender
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-06-2006, 08:32 AM
businessbazee's Avatar
businessbazee businessbazee is offline
Member
 
Join Date: Nov 2006
Location: what is this place?
Posts: 80
businessbazee is on a distinguished road
iTrader: (0)
Default

I am going to try that one out...
If this works, you have solved a big problem for me.
Bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-07-2006, 05:04 AM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,197
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

hi there,

if you face any problem, i will try to solve it.

best of luck
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-07-2006, 09:57 AM
businessbazee's Avatar
businessbazee businessbazee is offline
Member
 
Join Date: Nov 2006
Location: what is this place?
Posts: 80
businessbazee is on a distinguished road
iTrader: (0)
Default

Hi jitender,
Does this need wild card supported hosting?
Bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-07-2006, 12:44 PM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,197
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

No need for wild card support hosting,
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 12-08-2006, 08:11 PM
businessbazee's Avatar
businessbazee businessbazee is offline
Member
 
Join Date: Nov 2006
Location: what is this place?
Posts: 80
businessbazee is on a distinguished road
iTrader: (0)
Default

Hi jitender,
I copied that in a .htaccess file, changed the domain, user to mine, but it gives me a page not found message.

BTW, the domain needs to be changed at 1 place and the user in 2 places. Is that right?
Bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 12-12-2006, 12:51 PM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,197
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

no

USER = three times
DOMAIN = one time
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 12-13-2006, 02:03 AM
jimkarter jimkarter is offline
Member
 
Join Date: Apr 2006
Posts: 36
jimkarter is on a distinguished road
iTrader: (0)
Default

thank you all for the help.
I am able to make it work. Thanx.
__________________
My Sites: add a link directory, add your link directory, various reviews site and epitrope directory.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-20-2006, 05:31 AM
jitender's Avatar
jitender jitender is offline
Site Admin
 
Join Date: Jun 2004
Posts: 1,197
jitender has a spectacular aura aboutjitender has a spectacular aura aboutjitender has a spectacular aura about
iTrader: (0)
Default

Hi there,

need more help, add here
__________________
Free Webmaster Tools - Free SEO Tools
phpLDHacks - Add your template or Hack and earn money
Text Link Ads - Buy & Sell text link ads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:14 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0