logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: .htaccess and rewriting urls
Author
nitestarz



Joined: 27 Jan 2011
Posts: 1

PostPosted: Thu 27 Jan '11 17:48    Post subject: .htaccess and rewriting urls Reply with quote

I have multiple URL 's that have a portion of the URL that is similar, for example:

Tutorial-ASP-NET-2-Programmers.htm
Example-ASP-NET-2-Programmers.htm


How can I have those redirect to a new URL without having to do each one individually?

They are all going to the same new URL.

Thanks!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 28 Jan '11 17:22    Post subject: Reply with quote

you could work with RedirectMatch

Code:

RedirectMatch (.*)-ASP-NET-2-Programmer\.htm$ http://www.example.com/exaple.htm
Back to top


Reply to topic   Topic: .htaccess and rewriting urls View previous topic :: View next topic
Post new topic   Forum Index -> Apache