Solved

Matching URLs with Htaccess

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Apache LDAP Authentication 20 27
HTML Anchor Link Problem 3 35
REST endpoint query with a parameter 1 16
really easy css change help please 4 17
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
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…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

809 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