The requested URL /v/picture.JPG.html was not found on this server.

cjupin

Joined: 2006-01-02
Posts: 1
Posted: Mon, 2006-01-02 07:41

I've been trying to get gallery embedded into my wordpress site (www.cjupin.com). Here is the error message:

-------------

The requested URL /v/anita.JPG.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

-----------------

Here is my .htaccess file:

-----------------------------------

# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /gallery/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} \ /gallery/admin/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery/main.php?g2_view=core.SiteAdmin [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery/v/(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery/main.php?g2_view=core.ShowItem [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery/d/([0-9]+)-([0-9]+)/([^\/]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2 [QSA,L]

RewriteCond %{THE_REQUEST} \ /gallery/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !main\.php
RewriteRule . /gallery/main.php?g2_view=core.ShowItem&g2_path=%1 [QSA,L]

</IfModule>

# END Url Rewrite section

------------------------------

Gallery works when I go to it directly:

http://www.cjupin.com/gallery/main.php

-----------------------------------

I reran the config wizard and everything checked out ok...settings validated...

any help/suggestions would be great!!!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-01-02 14:20

are these the htaccess rules from gallery? i guess so since all short urls start with /gallery/v/ .
you also need to configure it for wp:

http://codex.gallery2.org/index.php/Gallery2:EmbeddedRewrites