Forums » 404 Problems .... again

RSS feed for this topic

Info

  1. So I have managed to set up Omeka. I can access the admin page, alter themes and add information. BUT from the mainpage, the user simply gets a 404 message when trying to browse items or collections or even the admin page directly (you have to get there from /install). Here is my .htaccess codes for a) the main folder; b) admin

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

    0
    php_flag register_globals off
    </IfModule>

    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 http://www.alexthenice.com/omeka RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    [OR]

    # This ensures that Apache will not mistake the URL mysite.com/archive/ for a request for the physical directory that

    stores files
    RewriteCond %{REQUEST_URI} .+\/archive\/
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php

    <FilesMatch "\.

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

    <Files index.php>
    Allow from all
    </Files>

    # 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|css|gif|png)$">

    # ExpiresActive on

    # ExpiresDefault "access plus 10 day"
    # </FilesMatch>
    </IfModule>
    # added specifically for 1and1.com
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    b) RewriteEngine on

    # If know that mod_rewrite is enabled, but you are still getting mod_rewrite errors,

    # uncomment the line below and replace "/admin/" with your install directory.

    RewriteBase /omeka/admin
    RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
    # added specifically for 1and1.com
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    I can't see what the problem is. Except that I am trying to run this off 1 and 1

  2. Are you running PHP 5.2.4?

  3. Sorry, I fixed it apparently.

    You have to specify the Rewrite / in the base .htaccess and in the /admin .htaccess. BUT not in /install.

    Seems to work okay now although I have to type http://mywebsite.com/omeka/admin/ to get to the admin screen.

    Alex

Reply

You must log in to post.