Solved

Poinitng the same page through different address

Posted on 2000-03-01
5
139 Views
Last Modified: 2010-03-05
Hi friends...
I am working with Unixware 2.0.1 Apache 1.3.1, PERL.
i have a major web site in my web server.
eg : hierarchy level is
main page --> state--> district--> Area
Once a user visited the perticular Area , in the location the web address as http://maindomain.com/state/district/area.
If he wants to vissit the Area page in next time, he wants to go through the step by step links.. also it is very difficult to remember the  perticular page address. So what i want is i want to give a short cut to this area as
http://maindomain.com/area.  
ie . next time onwards he can directly use this address to reach this area.
for this what configurations i have to do in my apache web server.
whether is it is possible in apache.

i want to give show both them are same pages.
0
Comment
Question by:mon1
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:guadalupe
ID: 2572478
Can't the user make a bookmark....?
0
 

Author Comment

by:mon1
ID: 2572520
Whether is it possible in apache. if so what changes i have to make...
0
 
LVL 3

Expert Comment

by:guadalupe
ID: 2572675
Well actually I was thinking of a user making a bookmark...  If not what do you propose...?  You want a quick link to where the user was...right?

What about leaving a cookie that conmtains the section name and a perl script that picks up the cookie and parses it into a link that is inserted onto the page...?
0
 
LVL 3

Accepted Solution

by:
jyu_88 earned 10 total points
ID: 2574270
You can just use the Alias directive
Alias /area "/APACHE/HOME/state/district/area"

It will work. However, apache.org acknowleged the possibilty of broken relative links in the aliased page. I used on my server, tolerated a few broken relateive-pathed icon. If you use absolute path like "/icon/good.jpg" then you should be fine.
0
 

Author Comment

by:mon1
ID: 2575336
Hi iyu88
   That is what is i am searching ...
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question