0
我有一个删除index.php(codeigniter)的htaccess文件。我遇到了Paypal问题,导致返回的URL使用查询字符串,这在codeigniter中很麻烦。将... /?token = xx-xxx转换为.../xx-xxx
这是我的htaccess的文件:
RewriteEngine on
RewriteBase/
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
我要重写以下示例URL-S:
http://.../site/bookingconfirmed/?token=EC-56G61173NH540131H
到
http://.../site/bookingconfirmed/EC-56G61173NH540131H
和
http://.../site/bookingdeclined/?token=EC-56G61173NH540131H
到
http//.../site/bookingdeclined/EC-56G61173NH540131H
任何好的想法如何做到这一点?