View previous topic :: View next topic |
Author |
Message |
Bell-chan -
Joined: 09 Nov 2005 Posts: 8
|
Posted: Tue Nov 25, 2008 9:24 pm Post subject: Directories with numbers are rewritten but should not |
|
|
Hi!
I have a problem with the wallpaper gallery on my homepage (http://bell-chan.dyndns.org/). Last week I've installed PHP 5.2.6 (preconfigured PHP 5 package for Windows from Aprelium) and changed the gallery from HTML to PHP. I also added some URL Rewriting rules (the gallery is located in /wp/):- ^/wp/[^/]+\.html$ (external redirection to /wp/) Code 301
- ^/wp/(.+)/([0-9]+)/ (external redirection to /wp/$1/$2) Code 301
- ^/wp/(.+)/([0-9]+) (internal redirection to /wp/gallery.php?anime=$1&page=$2) Code 302
The problem is that neither the thumbnails nor the pictures do load for series that begin with a number (e.g. http://bell-chan.dyndns.org/wp/12%20Kingdoms/1) but it works as intended with all other series (e.g. http://bell-chan.dyndns.org/wp/A%20Little%20Princess%20Sara/1). What could be the problem? _________________ Goddess in the Shell - It Found A Phone... Now It Needs A Wish |
|
Back to top |
|
|
Bell-chan -
Joined: 09 Nov 2005 Posts: 8
|
Posted: Fri Nov 28, 2008 3:16 am Post subject: |
|
|
The problem is solved. I've changed the last Virtual Path Regular Expression to ^/wp/(.+)/([0-9]+)$ and now it works. _________________ Goddess in the Shell - It Found A Phone... Now It Needs A Wish |
|
Back to top |
|
|
rrinc -
Joined: 24 Feb 2006 Posts: 725 Location: Arkansas, USA
|
Posted: Fri Nov 28, 2008 8:46 am Post subject: |
|
|
Glad you figured it out. Not many of us are familiar with regular expressions (I'm especially speaking for myself here heh). _________________ -Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados. |
|
Back to top |
|
|
|