[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Redirect all requests to modified URL

Posted on 2006-03-22
2
Medium Priority
?
170 Views
Last Modified: 2010-03-04
I need all requests for

http://domain.com/content/apple/
http://domain.com/content/banana/
http://domain.com/content/orange/

to automatically redirect to

http://domain.com/apple/
http://domain.com/banana/
http://domain.com/orange/

Is this possible without involving my host?

Sandy
0
Comment
Question by:SandyCooke
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 total points
ID: 16256461
e.g. with mod_alias, yes. If you can use a .htaccess file, place the following line in it:

RedirectMatch 301 ^/content/(.*) http://domain.com/$1
0
 
LVL 2

Author Comment

by:SandyCooke
ID: 16264673
You are a genius and I love you for it
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
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…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

873 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