Reputation: 6873
What am I doing wrong with this regex.
My requested url
http://domain.com/local/v11/full/#Q73Ps/
What I have in .htaccess
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^local/v11/full/#([a-zA-Z0-9]+)/ local/v11/server/full.php?token=$1
The above rule always give me 404 error.
Added Logs
related apache error
[Thu Feb 09 14:04:21 2012] [error] [client 127.0.0.1] File does not exist: /path/to/folder/local/v11/full
related access logs
[09/Feb/2012:14:16:54 +0500] "GET /local/v11/full/ HTTP/1.1" 404 340
no re-write log
Upvotes: 2
Views: 245
Reputation: 7888
when you try to access: http://domain.com/local/v11/full/#Q73Ps/
browser send request for: http://domain.com/local/v11/full/
and doesn't consider #Q73Ps/
as part of URL. if you want to get your rewrite rule working replace #
in URL with %23
and it will work.
Upvotes: 6