开发者

discover if mod_rewrite is working (MAMP + codeigniter)

开发者 https://www.devze.com 2022-12-23 12:25 出处:网络
I\'m experimenting (and having problems!) with codeigniter. In particular, links do not work. even if they are correct (eg. http:开发者_JAVA百科//localhost/ci-book/welcome/cat/3, where welcome is con

I'm experimenting (and having problems!) with codeigniter.

In particular, links do not work. even if they are correct (eg. http:开发者_JAVA百科//localhost/ci-book/welcome/cat/3, where welcome is controller, cat the method), they can't be open and chrome says "Oops! This link appears to be broken...."

Someone suggested to check that mod_rewrite is working. How can I do that?

I'm using Mamp.

thanks, P.


First, check that the basic URL without mod_rewrite works: http://localhost/ci-book/index.php?welcome/cat/3

Then setup mod_rewrite, restart httpd, and attempt to navigate back to your URL. If it works (or at least, if part of the page loads with errors), then mod_rewrite is working.

0

精彩评论

暂无评论...
验证码 换一张
取 消