problem with rewritting |
[eluser]global_erp_solution[/eluser]
I tried to access web page using /servername/first/order. my controller name is order_controller.php. so in my htaccess: Code: RewriteEngine On and I got 404 page not found. the rewritelog: Code: (3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] strip per-dir prefix: D:/Apache/apache-httpd-2.2/apache-php-webapps/first/order -> order What's wrong? thanks
[eluser]InsiteFX[/eluser]
.htaccess should be in the root folder with index.php Code: php_value default_charset utf-8
[eluser]global_erp_solution[/eluser]
but I have several web apps, and the other are not using CI. some are for cake. that's why I didn't put it in root.
[eluser]InsiteFX[/eluser]
It goes in the root folder of your CodeIgniter installation were index.php is.
[eluser]global_erp_solution[/eluser]
yes, index.php is inside "first" folder along with the rewrite. however, following security guide, the application and system folder are outside root. everything works just fine with this setting if the rewrite is disabled. anything wrong?
[eluser]global_erp_solution[/eluser]
all of my controllers are suffixed with _controller, but I'm hoping by using rewrite, I can omit the _controller part. Even when I change my rewrite to this: Code: RewriteEngine On /first/order still returned 404. Why is this?
[eluser]global_erp_solution[/eluser]
solved it. Dunno what's wrong, but apparently some virus did this (or is it trojan?) did the trick. thanks for the help and thanks to my antivirus.
[eluser]InsiteFX[/eluser]
Microsoft has every free now for Viruses if you run Windows. Microsoft Security Essentials And for Root Kits, Trojon's and Viruses: Windows Defender Offline And they also update their deffinition files two to three times a day and weekends. |
Welcome Guest, Not a member yet? Register Sign In |