SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
masking a subdomain
#1
currently when i write sub.domain.net, when the page loads it is showing the server ip so i need to mask it

my current .htaccess shows:
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domain.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.sub.domain.net$
RewriteRule ^(.*)$ http://***.***.***.***/folder_name/ [R=301,L]

what do i have to write more ? so that it will not show the ip /
Reply
#2
Sounds like improperly set domain name. What happens when you type in the main domain? That doesn't change to an IP does it?

You shouldn't even need to have anything in the .htaccess for it to work normally. Anyway, just sounds as if the sub-domain PTR record (reverse DNS) or similar isn't properly set on by your webhost. I would just contact them and tell them to fix it.
Reply
#3
i got the domain hosted on serverfly and it doesnt show the ip

i created a subdomain an pointed it to my server but there isnt an option to mask it :/
Reply
#4
you really shouldn't have to mask it. if you have it forwarded to the ip, then it will show the ip. thats pretty much how it is. you should be able to just point the sub to the address and not forward it to it. (as you can tell its been awhile since I have really worked with domains and stuff Smile)
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)