Routing problem with a non-omeka page

I have created a php page and I upload it on the root folder of my Omeka installation.
When I go to the url of the page I have this error on a omeka page

Page not found
The page you are trying to view does not exist. Use the back button to return to the last page.
Page not found.
Reason: error-router-no-match

How can I solve this issue?

Thanks for your answers

Hi @ver_tips1 ,

You might be able to get that to work by adding the file extension to the URL like this:

http://www.omeka.org/your-custom-page.php

With that said, it depends on what you’re trying to do, but I wouldn’t recommend putting files in your Omeka directory like that - I would use the framework.

Thanks for your answer. I understand your concern.

Uploading a test.php page on the omeka install directory, I have the error indicated previoulsy

As non PHHmyadmin is installed on the server, I want to have a web access to mydb and I want to install Adminer (very simple tool to manage a db in one file). I don’t think it is possible within the framework.

Omeka will try to route any PHP file under its folder structure to the Omeka application, so dropping a .php file in won’t work.

I’d also recommend to not do it if you have other options (separate folder outside Omeka’s, separate domain/subdomain, etc., or just using a module/theme instead of a separate script for most use cases) but if you have to, it’s possible to achieve. The simplest way is to make a folder where your .php file will go (so not right in the root, in a new folder there). In addition to your .php file, add a .htacesss file with the contents RewriteEngine Off and that should make the separate script accessible.

1 Like