Link to home
Start Free TrialLog in
Avatar of Anti-Mhz
Anti-Mhz

asked on

How to point to a specific page on a site?

Is it possible using your own DNS server/system (in this cases windows 2003 sbs) to create  records that point

to a part of the web site, for instance url http://page2 points to  http://mysite/book1/page2 instead of

http://page2 points to specific IP or Hostname

i have at my disposal
intranet
windows 2003 SBS DNS snap in (DNS server capable fo creating A/CNAME/MX/etc records)
iis6
Avatar of Papertrip
Papertrip
Flag of United States of America image

Nope, DNS does not work past 'page2'.  You will have to do some sort of redirect/rewrite in IIS.
ASKER CERTIFIED SOLUTION
Avatar of Papertrip
Papertrip
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi,

Papertrip is true, DNS only refer to IP address. If you like to refer to http://mysite/book1/page2 then you need to create entry named "page2" and do URL rerwrite.

However it is not practical as you might have page3, page4... etc, which you need to create A records for all that.

The practice how people do is to shorten http://mysite/book1/page.aspx?pageid=A1025332&uid=khairil to http://mysite/book1/book2.aspx using URL rewrite,

The aim is not only to make URL shorten but more readable and SEO friendly.

This suppose be your approach. You need to use this http://iirf.codeplex.com/ (free) or  this http://www.isapirewrite.com/ (have free lite version) for IIS6.

IIS7 already have url rewrite module (http://blogs.iis.net/bills/archive/2008/05/31/urlrewrite-module-for-iis7.aspx), so does apache (http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html).
Quick, answer his new question :-p
Avatar of Anti-Mhz
Anti-Mhz

ASKER

thanks i know i can get it down to http://mysite/bug via iis / url rewrite /joomla
im wondering if http://bug is possible since i do have some mighty powerful tools at my disposal

and lol @ Papertrip


not sure if its against EE policy but heres my new and improved question :)
https://www.experts-exchange.com/questions/27419785/Redirect-question-for-a-specific-page-on-the-site.html
Yup it is possible to have your user type "bug" for the site, but you  must remember, the "bug" here is not the page, it is treated as domain. Which why you will need to have and publish A record for that. The rewriter then read this domain and translate it to appropriate page.

This might works in your internal network but you will find it impossible when you want to publish it for external user. You still need to have SLD (second level domain, like mysite.com) for outsiders.
1. A record via DNS pointing to the server
2. new IIS web site using A redirection to URL for home directory
3. host header "bug"
4. downgrade ASP.net to 2.0 for"bug"
4. iisconfig /reset
5. ipconfig /flushdns
6. tada !

@khairil - if you dont mind copying/pasting yur answer here:
https://www.experts-exchange.com/questions/27419785/Redirect-question-for-a-specific-page-on-the-site.html

so i can give you points