Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Web Redirect

Posted on 2002-06-05
7
Medium Priority
?
334 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

636 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