hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Can I redirect sub.domain.com to domain.com/page.php?name=sub via htaccess?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Can I redirect sub.domain.com to domain.com/page.php?name=sub via htaccess?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-09-2006, 01:13 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
Arrow

Can I redirect sub.domain.com to domain.com/page.php?name=sub via htaccess?


I want to redirect:

http://subdomain.domain.com

to http://www.domain.com/page.php?=subdomain

Would it be possible via htaccess?

If not, how can I do it?

Thanks,

Peace,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote


Sponsored Links
  #2  
Old 10-09-2006, 01:16 PM
mwatkins mwatkins is offline
Web Hosting Master
 
Join Date: Nov 2001
Location: Vancouver
Posts: 2,416
Quote:
Would it be possible via htaccess?
Yes.

Check the docs for mod_rewrite and mod_redirect

__________________
“Even those who arrange and design shrubberies are under
considerable economic stress at this period in history.”

Reply With Quote
  #3  
Old 10-09-2006, 02:11 PM
chluchu chluchu is offline
Newbie
 
Join Date: Oct 2006
Posts: 19
I think there is thread about it. Here is the link:
http://www.webhostingtalk.com/showthread.php?t=553341

Reply With Quote
Sponsored Links
  #4  
Old 10-09-2006, 02:48 PM
Barti1987 Barti1987 is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: USA
Posts: 4,342
How stupid of me not to search, and the answer was right three topics beneath.

Thanks alot,

Peace,

__________________
Testing 1.. Testing 1..2.. Testing 1..2..3...

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
.CA Domain Will Support French Characters Starting Mid-January Web Hosting News 2012-12-31 15:11:30
Go Daddy Blocks Whois Info on Expiring Domains, Protects Domain Auction Business Web Hosting News 2012-11-14 11:20:35
Web Hosting Domain Name Webhosting.co.uk Sold for $500,000 by Sedo Web Hosting News 2012-11-09 09:51:25
ICANN Publishes Details on Domain Seizure Process Web Hosting News 2012-03-09 15:38:48
Go Daddy Helping Customers Repair Compromised Sites Web Hosting News 2011-09-16 14:35:03


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?