Solved

Redirection og one URL to another URL with Apache2

Posted on 2011-09-14
6
281 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

919 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

14 Experts available now in Live!

Get 1:1 Help Now