Solved

Redirection og one URL to another URL with Apache2

Posted on 2011-09-14
6
284 Views
Last Modified: 2012-05-12
I have a customer who is running a web site on apache2 on Suse Linux.

They want to rediret the URL www.anuecollege.edu.au/pay to www.blah.com/someurl. I am a complete novice with Apache and appreciate any help.
0
Comment
Question by:dlg654
[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
  • 2
6 Comments
 
LVL 15

Expert Comment

by:Minh Võ Công
ID: 36540612
0
 
LVL 15

Expert Comment

by:Minh Võ Công
ID: 36540613
0
 
LVL 1

Accepted Solution

by:
jimmart earned 500 total points
ID: 36540661
It all depends on how their server is setup and if it has virtual hosts.
If the www.anuecollege.edu.au/pay site is the only one defined then add the line:
Redirect /pay http://www.blah.com/someurl
or
Redirect permanent /pay http://www.blah.com/someurl
to the /etc/apache2/default-server.conf file.
If www.anuecollege.edu.au is a virtual host then the configuration for the site will be in a .conf file in the /etc/apache2/vhosts.d directory. You will need to look through the *.conf files in /etc/apache2/vhosts.d and look for a VirtualHost definition that has a ServerName line mentioning www.anuecollege.edu.au or anuecollege.edu.au. Then add one of the Redirect lines above anywhere between the <VirtualHost> and </VirtualHost> lines.
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!

 

Author Comment

by:dlg654
ID: 36540674
It is set up as a virtual host, will try your suggestion thankyou.

0
 

Author Comment

by:dlg654
ID: 36540714
I've requested that this question be closed as follows:

Accepted answer: 0 points for dlg654's comment http:/Q_27309174.html#36540674

for the following reason:

First class, thank you.
0
 

Author Comment

by:dlg654
ID: 36540715
I meant to award these points to Jimmart as his solution worked well. Can I please cancel the closure.

David
0

Featured Post

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Xampp Not Stopping 9 44
XAMPP 14 54
Apache,  not running php on top level 14 78
DNS CNAME records visibility on a web server 2 68
In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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