Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 02-27-2007, 12:30 AM .htaccess question
Ultra Talker

Posts: 330
Trades: 0
I would like to modify my .htaccess file so that if someone tries to access any subdomain.mydomain.com URL, it will actually work and display a given page. The page will be the same for any subdomain they put in, but I don't want it to be a redirect to another URL. Does that make sense? Is that possible? If anyone can help me out with this, I will give very thankful talkupation.
__________________

Please login or register to view this content. Registration is FREE
- 99.9% uptime web hosting. Set up an account within minutes.
JGiannotti is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-27-2007, 12:49 AM Re: .htaccess question
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
I think you would be better off making an A dns record change
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 02-27-2007, 01:02 AM Re: .htaccess question
Ultra Talker

Posts: 330
Trades: 0
I cant just do it easily with a .htaccess file?
__________________

Please login or register to view this content. Registration is FREE
- 99.9% uptime web hosting. Set up an account within minutes.
JGiannotti is offline
Reply With Quote
View Public Profile
 
Old 02-27-2007, 02:18 AM Re: .htaccess question
Skilled Talker

Posts: 61
Location: Dhaka, Bangladesh
Trades: 0
Quote:
Originally Posted by JGiannotti View Post
I cant just do it easily with a .htaccess file?
I am not 100% sure, but I don't think, only htaccess will be able to do that. You will need to set up a wild card A record to point to the main domain where you put the modrewrite rules in htaccess to point to the page you want to direct to.
__________________

Please login or register to view this content. Registration is FREE
: Quantumcloud

Please login or register to view this content. Registration is FREE
: dna88
quantumcloud is offline
Reply With Quote
View Public Profile Visit quantumcloud's homepage!
 
Old 02-27-2007, 02:28 AM Re: .htaccess question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
You are definitely correct.
Before you can use .htaccess rules to do what you want, you need a "wildcard" DNS setting up so that anything.hostname.tld will resolve to the one virtual site
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-27-2007, 03:59 PM Re: .htaccess question
Ultra Talker

Posts: 330
Trades: 0
Alright cool, thanks... Do you know any simple tutorials for configuring the wildcard DNS setting?
__________________

Please login or register to view this content. Registration is FREE
- 99.9% uptime web hosting. Set up an account within minutes.
JGiannotti is offline
Reply With Quote
View Public Profile
 
Old 02-27-2007, 04:09 PM Re: .htaccess question
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Looks like you're already convinced, and I don't know the answer to your new question, but just for the record, anything you do in htaccess will slow the server - meaning your web site - down. Also, htaccess is a nasty, ugly beast. If you can avoid it, even just for your own sanity, this is advised. Personally, I prefer IIS.

Just an observation, but if you run a hosting company ( I'm assuming you do based on your sig ) shouldn't you be telling us the ins and outs of DNS?
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 02-27-2007, 04:21 PM Re: .htaccess question
Ultra Talker

Posts: 330
Trades: 0
HostGator reseller account = free WHM AutoPilot, which I took advantage of, got a few clients, and now my reseller plan pays for itself

Back to the wildcard DNS... I'm going to look up a tutorial and give it a try. Wish me luck.
__________________

Please login or register to view this content. Registration is FREE
- 99.9% uptime web hosting. Set up an account within minutes.
JGiannotti is offline
Reply With Quote
View Public Profile
 
Old 02-27-2007, 04:30 PM Re: .htaccess question
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Good luck!

There's a million tutorials on every subject, I find most of the time it's harder to figure out what to look for than to find step by step instructions. You'll be fine.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-01-2007, 06:09 PM Re: .htaccess question
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,383
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
just add
Code:
*.hostname.tld   14400   IN    A    nnn.nnn.nnn.nnn
to the zone file for the hostname. (nnn.nnn.nnn.nnn being the IP for the server)
Zone file name will be hostname.tld.db if you are using BIND
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to .htaccess question
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31612 seconds with 12 queries