Sinros
Sinros

Reputation: 181

URL Rewrite doesn't work as intended apache2

Works:

 RewriteRule  index2.php/xyz/ index2.php/?pt=xyz [QSA,L]

Doesn't Work:

 RewriteRule  index2.php/(.+)$/ index2.php/?pt=$1 [QSA,L]

I tried to use the above rewrite rule but somewhy it doesn't work... $1 stays null

Upvotes: 0

Views: 59

Answers (1)

charlieco
charlieco

Reputation: 62

Why is the $ in there after (.+)? Dollar sign means end of line in most regex engines. What happens if you take that out?

Upvotes: 1

Related Questions