Solved

Web Redirect

Posted on 2002-06-05
7
318 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
  • 3
  • 3
7 Comments
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
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
Comment Utility
yuzh,

If i am no any foder call yyy, how?

Best Regards,
Wee Siong
0
 
LVL 38

Expert Comment

by:yuzh
Comment Utility
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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
Comment Utility
ahoffmann,

I havent try it, so yuzh way is correct?

Best Regard,
Wee Siong
0
 
LVL 38

Accepted Solution

by:
yuzh earned 50 total points
Comment Utility
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
Comment Utility
Thanks :)

Best Regards,
Wee Siong
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now