htaccess 301 redirect

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 |
is_numericAsked:
Who is Participating?
 
is_numericAuthor Commented:
Don't need this solution any more. Not needed.
0
 
tailoreddigitalCommented:
# 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
 
is_numericAuthor Commented:
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
 
is_numericAuthor Commented:
Not needed
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.