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
任何好的想法如何做到這一點?