Solved

Redirection og one URL to another URL with Apache2

Posted on 2011-09-14
6
282 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IPv6 Networking 6 103
Problem to go to page 12 93
How do I change the default encoding to utf8MB4 for PHP server running Cpanel 5 120
linux apache localhost dev laptop 5 50
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 are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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