?
Solved

Web Redirect

Posted on 2002-06-05
7
Medium Priority
?
333 Views
Last Modified: 2010-04-21
Experts,

I have a website let say call http://www.xxx.com
and now i wish from http://www.xxx.com/yyy/ redirect to this http://www.xxx.com/zzz/

How to redirect my website to another location with server configuration without changing scripts?

Best Regards,
Wee Siong
0
Comment
Question by:weesiong
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 7058454
You can create a symbolic links to get the job done.

cd your-web-server-root-dir
mv yyy mybackup
ln -s /your-web-server-root-dir/zzz /your-web-server-root-dir/yyy

    Note: your old yyy dir becomes mybackup, when people use http://www.xxx.com/yyy/, it automatically point to http://www.xxx.com/zzz/

   

0
 
LVL 7

Author Comment

by:weesiong
ID: 7058525
yuzh,

If i am no any foder call yyy, how?

Best Regards,
Wee Siong
0
 
LVL 38

Expert Comment

by:yuzh
ID: 7058606
if you don't have a yyy dir, but you have zzz. do the followings:

1. login as root, or su as root

2. cd your-web-server-root-dir
   ln -s /your-web-server-root-dir/zzz /your-web-server-root-dir/yyy

   this create a a symbolic link for you.

   when some one try to access yyy, it goes to zzz

   I hope this can help.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 51

Expert Comment

by:ahoffmann
ID: 7058707
your webserver has the ability to do this, usually.
In apache this is called Alias and/or ScriptAlias, it also has sevaral other redirect methods.
0
 
LVL 7

Author Comment

by:weesiong
ID: 7058741
ahoffmann,

I havent try it, so yuzh way is correct?

Best Regard,
Wee Siong
0
 
LVL 38

Accepted Solution

by:
yuzh earned 200 total points
ID: 7058761
In apache, you can change the httpd.conf file to make a alias to do the job.

you can add someting like:

Alias /yyy/ "/full-path-to-zzz/"

or just do what I told you before.


 
0
 
LVL 7

Author Comment

by:weesiong
ID: 7058798
Thanks :)

Best Regards,
Wee Siong
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

770 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