Forums » Support
.htaccess
jirkap
CZECH REPUBLIC
2007-04-17 09:17:27
 

hi Vaska,

I've got a minor problem with .htaccess:
I am sure my webhost has mod_rewrite enabled. But it still keeps getting me 404 error when accessing any page except 'Main'. I believe there is a problem at the last line in .htaccess:

RewriteRule ^(.+) index.php

Indexhibit is installed in www.supernode.eu (but as far as i know it should not matter where it is placed, or am I wrong?) Unfortunately I don't understand regular expressions enough to get it to work. I give up :) I don't really care about it, but maybe it is something really stupid and simple to correct...

cheers
jirka

Vaska
I WROTE THIS
2007-04-17 09:37:12
 

I don't believe that mod_rewrite is working properly on your server - the htaccess file is pretty basic. The last line directs everything through your index.php file - if you get the 404 error it means that mod_rewrite is simply not doing it's job.

jirkap
CZECH REPUBLIC
2007-04-17 09:42:47
 

ok, thanks, I'll try to contact server admin.

Vaska
I WROTE THIS
2007-04-17 11:31:38
 

For future reference...Jirka came up with an alternate version...this might be helpful for others in the future if they have problems and they know 100% that their server does have mod_rewrite:

RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) - [PT,L] RewriteRule ^(.+) /indexhibit/index.php?/$1 [L]
Showing 1 - 4 of 4 posts in Forum > Support > .htaccess
 

You need to be logged in to post.