且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

重写htaccess文件中的网址-删除查询字符串

更新时间:2023-02-18 16:47:04

我假设您在商店目录中使用rewriterules,而index.php正在处理数据,然后尝试以下操作.

I am assuming you are using rewriterules in shop directory and index.php is handling the data then try with below.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+?)$ index.php?s=$1 [L]