[英]How to hide some parameter from url in codeigniter
My url is like this 我的网址是这样的
http://www.dezaro.com/index.php/product/156/48/Baskets
http://www.dezaro.com/index.php/product/156/48/购物篮
and want to change it into 并希望将其更改为
http://www.dezaro.com/Living/Decor/Baskets http://www.dezaro.com/Living/Decor/Baskets
here 156 mean Living and 48 is Decor 这里156表示生存,而48是装饰
I also tried to hide index.php but my htaccess code won't work. 我也尝试隐藏index.php,但是我的htaccess代码无法正常工作。 Here is my code
这是我的代码
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
Making Route might helpful. 制作路线可能会有所帮助。 URI Routing
URI路由
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.