Mod_rewrite serious problem


In reference to omeka installation. I am having issues with omeka as mod rewrite. The installation was causing a an issue on both sites. So I used a method to try and block it from asking if mod rewrite exists. Even tho I have confirmed that mod rewrite exists.


The admin panel works on both but it it won't allow you to access the website without an error. Also I have tried to find the errors by changing the 0 to 1 in hot access but that also didn't work.

Here is the htaccess

# Remember to enable display_errors on development environments only.
<IfModule mod_php5.c>
php_value display_errors 1
php_flag register_globals off

RewriteEngine on

# If know that mod_rewrite is enabled, but you are still getting mod_rewrite errors,
# uncomment the line below and replace "/" with your base directory.
#RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/ - [C]
RewriteRule .* admin/index.php [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php

<FilesMatch "\.(php|ini)$">
Order Allow,Deny
Deny from all

<Files index.php>
Allow from all

# Uncomment the lines below in order to enable caching of some files via Apache (after a finished site has gone live)
<IfModule mod_expires.c>
# <FilesMatch "\.(js|ico|gif|jpg|png|css)$">
# ExpiresActive on
# ExpiresDefault "access plus 10 day"
# </FilesMatch>

Thanks for the help.

I don't think this is a mod_rewrite error.

The "afghanistan" link works fine, as far as I can see.

For the other one, I'm not sure what error is occurring, but it's limited to the front page it seems, since links like seem to work okay.

Apparently you aren't using mod_php, or the change in the .htaccess file would have revealed your actual error message. As a workaround, you could temporarily add a line:

ini_set('display_errors', '1');

to the top of the paths.php file (after the <?php line).