Solved

htaccess 301 redirect

Posted on 2013-05-30
4
283 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
  • 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Concerto provides fully managed cloud services and the expertise to provide an easy and reliable route to the cloud. Our best-in-class solutions help you address the toughest IT challenges, find new efficiencies and deliver the best application expe…
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

947 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

21 Experts available now in Live!

Get 1:1 Help Now