criscokid Posted October 23, 2004 Posted October 23, 2004 I've done a few searches but haven't found any info...Server 2003 running IIS6. I want to create a URL alias so if a websurfer types inan easy URL likehttp://www.scene-out.com/D-N-A he's directed to the real page at http://www.scene-out.com/party/showproduct.php?product=54
piro Posted October 23, 2004 Posted October 23, 2004 I think a redirection should do the task.So as far as I can tell:1. Create a virtual directory named "D-N-A".2. In the properties dialog of this dir, go to the "Home Directory" tab and select the "A redirection to a URL" radio button.3. In the "Redirect to:" box, type your URL "http://www.scene-out.com/party/showproduct.php?product=54".4. Then select the "the exact URL entered above" checkbox.Hopefuly, this is what you want.piro
morellana Posted October 24, 2004 Posted October 24, 2004 Completely agree with piro, you can also use a default document that includes a script (like Javascript), that redirects to the URL that you want.
criscokid Posted May 13, 2005 Author Posted May 13, 2005 Just came across the following on another website:The other way to do this is server-side via the .htaccess file in your web root.Add a Redirect request to your .htaccess file in the following general form:Redirect whatpage.html http://www.mysite.com/otherpage.htmlThis sounds like a much better idea and easy to add new redirects in the future. Anyone have any comments on doing it this way?
valter Posted May 17, 2005 Posted May 17, 2005 .htaccess file works ONLY with Apache and not with IIS
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now