任何人都可以帮助我.htaccess重写网址,我是新手,并坚持以下问题
我有这个网址
http://example.com/catelogue.php?page=3
http://example.com/catelogue.php?page=3&cat1=fruit&cat2=apple
我希望这是
http://example.com/catelogue
http://example.com/catelogue/fruit/apple
下面是我的.htaccess文件,但问题是我已经实现了这个(example.com/catelogue/fruit/apple)但是我无法将我的网址重定向到(example.com/catelogue).
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^home index.php?page=1 [NC,L]
RewriteRule ^catelogue catelogue.php?page=3 [NC,L]
RewriteRule ^catelogue/([^/.]+)/([^/.]+)$ catelogue.php?page=3&cat1=$1&cat2=$2 [NC,L]
答案 0 :(得分:2)
这应该有效。以这种方式尝试你的规则。这个对我有用。
std::transform(std::begin(fftbins), std::end(fftbins), std::begin(filtercoeff), std::multiplies<std::complex<double>>());