Welcome Guest, Not a member yet? Register   Sign In
need help with .htaccess
#2

[eluser]Adam Liszkai[/eluser]
Hi!

My .htacess file:

Code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php?$1 [L]

And you can rename in /application/config/routes.php

Code:
$route['default_controller'] = "page";
$route['404_override'] = '';

$route['^(?!admin|login|download).*'] = "page/lang/$0";

Here when the url fisrt section is not admin or login or download then rewrite the code page/lang/ parameters...

And if you want it rename this shuld work(but im not test it):

Code:
$route['^(?name1).*'] = "name1/function/$0";

Cheers! Wink


Messages In This Thread
need help with .htaccess - by El Forum - 07-16-2012, 03:11 AM
need help with .htaccess - by El Forum - 07-16-2012, 05:27 AM
need help with .htaccess - by El Forum - 07-16-2012, 06:13 AM
need help with .htaccess - by El Forum - 07-16-2012, 06:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB