Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th June 2007, 17:41
cooljai cooljai is offline
Member
 
Join Date: May 2007
Location: /dev/random
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to cooljai
 
Question Subdomain redirect to script as argument

Hi,

I want to fetch the "subdomain" entered by user in a script and then execute that script (script "show.php" is resides in web root and should run everytime when site accessed with a subdomain), instead of creating folder for each subdomain. I'm on CentOS 4.4/Apache 2.0

something like this, when a user type:
http://user1.mydomain.com
A script i.e. show.php should get user1 (subdomain part) as argument and then execute, like:
http://user1.mydomain.com/show.php?user=user1

I know that mod_rewrite/ .htaccess will do things here but no luck yet despite much googling/forum searching.

Thanks & Regards,

Jai
-------------------------
ek chota mota hindustani
-------------------------
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
apache2 problem laser144 Server Operation 8 15th March 2007 18:32
error in logs.php script Salvis General 7 15th November 2006 14:39
Some bug in subdomain redirect (forward) MvincM Installation/Configuration 2 31st October 2006 11:16
log files, rotation and emailing them hairydog2 General 65 11th October 2006 14:18
Installation Big issue OpenVZ VPS jbond007 Installation/Configuration 3 7th March 2006 20:40


All times are GMT +2. The time now is 12:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.