Welcome Guest, Not a member yet? Register   Sign In
problem with rewritting
#1

[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

RewriteCond $1 !^(index\.php|robots\.txt|css|js|pics)
RewriteRule ^(.+)$ /first/index.php/$1_controller [L]

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
(3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] applying pattern '^(.+)$' to uri 'order'
(4) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] RewriteCond: input='order' pattern='!^(index\\\\\\\\.php|robots\\\\\\\\.txt|css|js|pics)' => matched
(2) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] rewrite 'order' -> '/first/index.php/order_controller'
(1) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] internal redirect with /first/index.php/order_controller [INTERNAL REDIRECT]
(3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] add path info postfix: D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php -> D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php/order_controller
(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/index.php/order_controller -> index.php/order_controller
(3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] applying pattern '^(.+)$' to uri 'index.php/order_controller'
(4) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] RewriteCond: input='index.php/order_controller' pattern='!^(index\\\\\\\\.php|robots\\\\\\\\.txt|css|js|pics)' => not-matched
(1) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] pass through D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php
(3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] add path info postfix: D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php -> D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php/order_controller
(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/index.php/order_controller -> index.php/order_controller
(3) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] applying pattern '^(.+)$' to uri 'index.php/order_controller'
(4) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] RewriteCond: input='index.php/order_controller' pattern='!^(index\\\\\\\\.php|robots\\\\\\\\.txt|css|js|pics)' => not-matched
(1) [perdir D:/Apache/apache-httpd-2.2/apache-php-webapps/first/] pass through D:/Apache/apache-httpd-2.2/apache-php-webapps/first/index.php

What's wrong? thanks


Messages In This Thread
problem with rewritting - by El Forum - 07-22-2012, 12:09 AM
problem with rewritting - by El Forum - 07-22-2012, 12:18 AM
problem with rewritting - by El Forum - 07-22-2012, 12:20 AM
problem with rewritting - by El Forum - 07-22-2012, 12:23 AM
problem with rewritting - by El Forum - 07-22-2012, 12:28 AM
problem with rewritting - by El Forum - 07-22-2012, 04:21 AM
problem with rewritting - by El Forum - 07-22-2012, 04:54 AM
problem with rewritting - by El Forum - 07-22-2012, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB