Solved

Matching URLs with Htaccess

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

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

Title # Comments Views Activity
Objects on Same Line 2 30
Not seen Link button 5 39
how to handle long text strings in javascript or ajax 1 32
Using jQuery to set a DIV attribute on page load 9 32
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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 add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
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…

777 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