Directories with numbers are rewritten but should not

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
Bell-chan
-


Joined: 09 Nov 2005
Posts: 8

PostPosted: Tue Nov 25, 2008 9:24 pm    Post subject: Directories with numbers are rewritten but should not Reply with quote

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 View user's profile Send private message Visit poster's website
Bell-chan
-


Joined: 09 Nov 2005
Posts: 8

PostPosted: Fri Nov 28, 2008 3:16 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Fri Nov 28, 2008 8:46 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group