Solved

Redirection og one URL to another URL with Apache2

Posted on 2011-09-14
6
280 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
Comment Utility
0
 
LVL 15

Expert Comment

by:Minh Võ Công
Comment Utility
0
 
LVL 1

Accepted Solution

by:
jimmart earned 500 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

0
 

Author Comment

by:dlg654
Comment Utility
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
Comment Utility
I meant to award these points to Jimmart as his solution worked well. Can I please cancel the closure.

David
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

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). #…
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 tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

10 Experts available now in Live!

Get 1:1 Help Now