Welcome Guest, Not a member yet? Register   Sign In
uri routing and index.php removing using HMVC
#1

[eluser]Ngulo[/eluser]
Hi all, i'm using HMVC lib.
I'm still having problems on uri routing.

i need to route from :

mysite.com/home/index/123/ffdfd/etc ..

to:

mysite.com/home/123/ffdf/etc..

so i putted in routes.php this piece of code:

$route['home/index/(:any)'] = "home/(:any)";

but i'm still rhaving 404 page error.

does anyone knows about? could be HMVC a problem for that?


also still having troubles removing index.php from urls .

i use localhost/SITE/index.php/home

i removed config 'index.php' and putted .htaccess rules:

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

but apache still tells me 404 page not found ... really strange.

thanks guys who will help me Sad
#2

[eluser]Glazz[/eluser]
maybe

$route[‘home/(:any)’] = “home/index/(:any)”;
#3

[eluser]Ngulo[/eluser]
yes Smile eheh sorry my mistake ... now routes works thanks!!

dod you know what about index.php ? :S
#4

[eluser]Glazz[/eluser]
Hmm do you have mod_rewrite enabled on your webserver?
#5

[eluser]Ngulo[/eluser]
for sure :O !

i use many apps on my server all are ok using same htaccess , but they are CI sites without HMVC... this is so strange Sad
#6

[eluser]Glazz[/eluser]
Hmm since im no expert on this i dont know where the problem is, i use the same htaccess and im using HMVC too, and it works nice.

Try looking into the apache log entries to see if you find something unusual.




Theme © iAndrew 2016 - Forum software by © MyBB