Welcome Guest, Not a member yet? Register   Sign In
HTACCESS - A Complex Problem
#4

[eluser]vanquish[/eluser]
[quote author="mddd" date="1279733402"]Why are you doing this in .htaccess? Just change this:
Code:
RewriteRule ^(.*)$ index.php/pages/load_page/$1 [L]
back into this:
Code:
RewriteRule ^(.*)$ index.php/$1 [L]

and do the routing in your routes.php:
Code:
$route['auth/(:any)'] = 'auth/$1'; // this doesn't change a thing for any url starting with auth/
$route['(:any)'] = 'pages/load_page/$1'; // all other pages go to pages/load_page
[/quote]

Thanks for the replies guys!

Great idea in concept, but it did not work in practice. I made the changes exactly, but now all pages are just going to "load_page" and no URL parameters are being passed through.

I can click any page of the site, and it is just the same controller always being loaded. The auth controller is never touched. I tried changing the single quotes ' to double quotes " in the routing rule, and that did not work either.


Messages In This Thread
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 05:00 AM
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 06:30 AM
HTACCESS - A Complex Problem - by El Forum - 07-21-2010, 07:07 AM
HTACCESS - A Complex Problem - by El Forum - 07-22-2010, 03:40 PM
HTACCESS - A Complex Problem - by El Forum - 07-23-2010, 12:49 AM
HTACCESS - A Complex Problem - by El Forum - 07-23-2010, 08:47 AM



Theme © iAndrew 2016 - Forum software by © MyBB