Solved

Redirection og one URL to another URL with Apache2

Posted on 2011-09-14
6
285 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: 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

628 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