Solved

Matching URLs with Htaccess

Posted on 2011-03-04
3
202 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
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 50

Accepted Solution

by:
Steve Bink earned 500 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

679 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