This is a discussion on "[SOLVED] Htaccess redirects" within the PHP Forum section. This forum, and the thread "[SOLVED] Htaccess redirects are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
[SOLVED] Htaccess redirects
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
[SOLVED] Htaccess redirects
I have an htaccess file set up to mod_rewrite my query string. Currently I have this :
But it also means you can access it at /20/ which I don't want. How would I update my file to redirect back to just /20 if the visitor arrives at the location with a trailing slash? Thanks guys. This ones really doing my head in. |
|
|
|
||||
|
Re: Htaccess redirects
Use the following code to access how the file is accessed:
You could do something like so:
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Htaccess redirects
That's such a simple solutions. Works perfectly.
Cheers mate. Don't know why I didn't think of that myself |
|
||||
|
Re: [SOLVED] Htaccess redirects
You're welcome
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pointer domains and redirects | Preston | Hosting & Domains | 7 | Oct 11th, 2007 06:47 |
| automatic redirects | benbacardi | Classic ASP | 2 | Sep 13th, 2004 09:02 |