Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Matching URLs with Htaccess

Posted on 2011-03-04
3
Medium Priority
?
206 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
[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
  • 2
3 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 35042925
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
ID: 35043603
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 51

Accepted Solution

by:
Steve Bink earned 2000 total points
ID: 35043616

Try this:

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

Open in new window

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

610 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