Welcome Guest, Not a member yet? Register   Sign In
.htaccess not working? any view past .com/blah/ please help
#1

[eluser]Unknown[/eluser]
hay, i have a problem where any view past .com/blah/ wont work. if you have .com/blah it works fine as soon as you put the slash in .com/blah/ the view dies

may htaccess currently looks like

RewriteEngine on
RewriteCond $1 !^(index\.php|assets|css|images|img|js|themes|index|/|robots|\.txt)
RewriteRule ^(.*)$ index.php?/$1/$1/$1 [L]


if anyone could help thanks
#2

[eluser]Stefan Hueg[/eluser]
What's your intention behind that complicated .htaccess structure?
I have not yet realized what you are trying to achieve.
#3

[eluser]InsiteFX[/eluser]
I think he needs to create routes in CodeIgniter!

And this shoul be:
Code:
RewriteRule ^(.*)$ index.php?/$1 [L]
#4

[eluser]Unknown[/eluser]
hay um i changed it abit now but it still doesnt work, the intention is to be able to use the imgs css assets ect which is the $1 i believe when in the url but once you go beyond the /$1/ the use of imgs and js dies
#5

[eluser]InsiteFX[/eluser]
CodeIgniter Users Guide - URI Routing




Theme © iAndrew 2016 - Forum software by © MyBB