Solved

htaccess 301 redirect

Posted on 2013-05-30
4
299 Views
Last Modified: 2013-07-16
Hi

I am looking for a redirect from one path to another for example

www.domain.com/old-page

Open in new window


to

www.domain.com/cat/new-page

Open in new window


I cant use the domain in my redirect as the htaccess is shared across staging, preprod and production instances with each having its ow domain.

I envision something like this...

RewriteRule ^old-page /cat/new-page/ 

Open in new window


Any help would be appreciated |
0
Comment
Question by:is_numeric
[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
4 Comments
 
LVL 23

Expert Comment

by:tailoreddigital
ID: 39208402
# This allows you to redirect your entire website to any other domain
Redirect 301 / http://www.domain.com/cat/new-page


FYI,
https://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F
0
 

Author Comment

by:is_numeric
ID: 39210059
I do not want to redirect from an old domain to a new domain.

I want to redirect part of the URL to a new path without using the domain reference
0
 

Accepted Solution

by:
is_numeric earned 0 total points
ID: 39317482
Don't need this solution any more. Not needed.
0
 

Author Closing Comment

by:is_numeric
ID: 39329093
Not needed
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

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 …
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.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
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