Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: .htaccess and rewriting urls |
|
Author |
|
nitestarz
Joined: 27 Jan 2011 Posts: 1
|
Posted: Thu 27 Jan '11 17:48 Post subject: .htaccess and rewriting urls |
|
|
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
|
Posted: Fri 28 Jan '11 17:22 Post subject: |
|
|
you could work with RedirectMatch
Code: |
RedirectMatch (.*)-ASP-NET-2-Programmer\.htm$ http://www.example.com/exaple.htm
|
|
|
Back to top |
|
|
|
|
|
|