Search…

X3 Photo Gallery Support Forums

Search…
 
Arnjebobor
Experienced
Topic Author
Posts: 29
Joined: 23 Oct 2006, 12:42

The requested URL was not found on this server

03 Jun 2017, 13:20

Hello,

my url base is: www.example.com
my admin url base is: www.example.com/gallery/check

my path:
>gallery
>gallery/app/
>gallery/config/
>gallery/content/
>gallery/extensions/
>gallery/panel/
>gallery/public/
>gallery/templates/

In order to manage my admin, everything is ok, i can customize my options, but if I launch my gallery (www.example.com), i've got this message:

Code
Can't detect mod_rewrite
so i edit my htaccess file and i update this lines:

Code
<IfModule mod_rewrite.c>
    RewriteEngine On
    Options +FollowSymlinks
    # Options +SymLinksIfOwnerMatch
    RewriteBase /gallery
    # RewriteOptions <options>
</IfModule>
after refreshing my gallery, i've got this message "Everything seems to be OK!". I uncheck my admin "Show Diagnostics" to test my gallery but it doesn't work.

"Not Found
The requested URL was not found on this server."

any idea of what's going wrong ?

Best Regards
JP
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: The requested URL was not found on this server

03 Jun 2017, 13:49

JP wrote:my url base is: http://www.example.com
Before I could even try to answer this: I assume X3 is installed in example.com/gallery, and you want to be able to run it from URL example.com? How are you even enabling this in the first place?

Setting RewriteBase in .htaccess may fix "REWRITE RULES", but this has nothing to do with the application itself (PHP + Javascript), which uses server/request paths ... and the URL would be example.com, which is NOT the path to the X3 directory, or pages and images inside. RewriteBase doesn't change where the application is running from ... it just tells how Apache should apply rewrite rules.

At best, I would need to look into this.

What is your objective by doing something complicated like this? You could of course A) Set the domain to point directly to /gallery dir from Apache config, which would be the "correct" way of doing things, or B ) Setup a redirect from / to /gallery, or C) Why not just move X3 to root? What's the point of /gallery segment if nobody will ever see it?