Forum Moderators: phranque

Message Too Old, No Replies

Why is this rewrite not working?

         

dkin

3:23 am on Sep 12, 2005 (gmt 0)

10+ Year Member



Does anyone see anything wrong with this?

RewriteRule games/id/(.*)/xbox_games/(.*)\.html$ /games.php?op=detail&id=$1&name=$2

it was working a few days ago but does not seem to be working now.

jd01

9:25 am on Sep 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Someone changed something - either their were adjustments to the file, or your host made some type of change. If you did not change anything, I would recommend contacting your host. (Rules do not quit working by themselves.)

Justin

dkin

5:07 pm on Sep 12, 2005 (gmt 0)

10+ Year Member



thats what I said, because my entire site has gone haywire, I contacted my host and they said they were looking into it.

Dang, I hate when they do things like this.

Thanks for your help.

Dylan

jdMorgan

6:28 pm on Sep 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This won't change your problem, but you could speed up your processing with a few minor changes to your rule:

RewriteRule games/id/([^/]+)/xbox_games/([^.]+)\.html$ /games.php?op=detail&id=$1&name=$2 [L]

Also, start-anchor the patttern if possible.

Jim

dkin

1:54 am on Sep 13, 2005 (gmt 0)

10+ Year Member



lol, I dont know what any of that means but if you say it will work Ill go with it.

dlefree

2:43 am on Sep 13, 2005 (gmt 0)

10+ Year Member



Start anchor:

^

Example:

^games/id/(.*) ...