Solved

Matching URLs with Htaccess

Posted on 2011-03-04
3
198 Views
Last Modified: 2012-06-27
I am curious if it is possible to use HTACCESS to redirect to  new portfolio urls from my old ones based on the complexity of the link.

http://www.suissamesser.com/portfolio/project/advertising/the_responsiveness_campaign

The old links were:
http://www.suissamesser.com/portfolio/advertising/the_responsiveness_campaign/1
http://www.suissamesser.com/portfolio/advertising/the_responsiveness_campaign/

Thanks in advance for any assistance on this.
0
Comment
Question by:jsuissa
  • 2
3 Comments
 
LVL 50

Expert Comment

by:Steve Bink
Comment Utility
It is possible to do many things with mod_rewrite, even in .htaccess files.  You posted the original link...to where would you like them rewritten?
0
 

Author Comment

by:jsuissa
Comment Utility
Thanks!

The top link I posted is the new address and the bottom two links are URLs pointing to the old version.

If someone enters one of the old URLs we want it to go to the new one.

0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
Comment Utility

Try this:

RewriteRule ^/?portfolio/advertising/the_responsiveness_campaign /portfolio/project/advertising/the_responsiveness_campaign [R]

Open in new window

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

763 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

11 Experts available now in Live!

Get 1:1 Help Now