Welcome Guest, Not a member yet? Register   Sign In
.htacces RewriteEngine not working.
#1

[eluser]WickidGRAFX[/eluser]
I am using the following code in my .htaccess file:

Code:
RewriteEngine On
RewriteCond $1 !^(index\.php|css|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

It does not seem to be removing the "index.php" from the URI like I want it to. I thought maybe it had something to do with my server config but I contacted the host tech support and they said .htaccess is supported and it should work.

I am not getting any errors or 500 pages, it simply does not work.

I am new to codeigniter so I may be overlooking something simple.

Thanks in advance for any help.
#2

[eluser]sudinem[/eluser]
I'm also searching an answer to this question.

The above code doesn't remove index.php in the url.

Somebody plz reply to this thread

Sudinem
#3

[eluser]bretticus[/eluser]
.htaccess may be supported but that, by no means, is indicative that mod_rewrite is available for you to use. .htaccess is simply a way to configure Apache directives without having access to the Apache config files. Admins can lock down exactly what you can or can't do using .htaccess files though.

That said, how are you testing your rewrite? Did you remove "index.php" from your config file?




Theme © iAndrew 2016 - Forum software by © MyBB