我正在使用codeigniter处理Web应用程序 .
我有个问题
当我向这样的控制器请求时
http://localhost:8080/Saffron/Product/137/test-text
一切都好,但是当我向这样的控制器请求时
http://localhost:8080/Saffron/Product/137/مهارت-های-آموزشی-در مطالعه
得到了这个错误
The requested URL /Saffron/Product/137/کتاب-غلبه-بر-اضطراب-در-Ù…Øیط-های-آموزشی was not found on this server.
我使用这个htaccess规则
Options -Indexes -MultiViews +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Saffron/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php? [L]
</IfModule>
它在服务器上工作没有错误我有wamp locahost.where问题的问题吗?
更新:
我终于找到了:
RewriteEngine On
RewriteBase / Saffron /
RewriteRule ^ index \ .php $ - [L]
RewriteCond%! - f
RewriteCond%!-d
RewriteRule . /Saffron/index.php [L]
工作得很好
1 回答
转到你的配置替换$ config ['base_url'] ='';在下面的代码中它将如何帮助您
对于htaccess