Jump to content

Error with *


stubarny

Recommended Posts

Hello,

 

The rewrite rule below works except if I have no characters infront of the word "jobs".

 

  Quote
RewriteRule ^([^/]*)jobs([^/]*)$ jobs.php?q=$1jobs$2 [L]

 

Therefore "www.test.com/test-jobs-in-london" works but "www.test.com/jobs-in-london" fails (i.e. "webpage can not be found). But I thought that "*" meant 'zero or more than zero' so I don't understand why "www.test.com/jobs-in-london" is failing?

 

May thanks for any help you can give,

 

Stu

Link to comment
https://forums.phpfreaks.com/topic/259908-error-with/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.