?
Solved

Poinitng the same page through different address

Posted on 2000-03-01
5
Medium Priority
?
164 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 40 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

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

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

Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
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…
Six Sigma Control Plans
Suggested Courses

839 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