Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

htaccess 301 redirect

Posted on 2013-05-30
4
Medium Priority
?
307 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
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). #…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

670 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