Welcome Guest, Not a member yet? Register   Sign In
URL rewriting rules
#3

[eluser]loosetops[/eluser]
Use the routes file. config/routes.php

Code:
$route['about\.php'] = 'home/about';

You should first get rid of the index.php in the URL so that the route definitions are less cluttered.

To get rid of it

.htaccess
Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

and in the config.php
Code:
$config['index_page'] = "";


Messages In This Thread
URL rewriting rules - by El Forum - 07-28-2010, 03:50 PM
URL rewriting rules - by El Forum - 07-28-2010, 07:30 PM
URL rewriting rules - by El Forum - 07-29-2010, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB