In Progress

196005 Apache Rewrite

Gallery|Wordpress Integration has small rewrite problem that I can't fix:

Gallery System Info:

Gallery version = 2.2.4 core 1.2.0.6

PHP version = 5.2.4 apache

Webserver = Apache/[url removed, login to view] (Unix) mod_perl/1.30 PHP/5.2.4 with Suhosin-Patch mod_interchange/1.34 mod_ssl/[url removed, login to view] OpenSSL/[url removed, login to view]

Database = mysqli [url removed, login to view], lock.system=flock

Toolkits = ArchiveUpload, ImageMagick, LinkItemToolkit, Thumbnail, Gd, SquareThumb

Acceleration = none, none

Operating system = FreeBSD [url removed, login to view] 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #7: Tue Jan 15 09:48:03 EST

WordPress Version 2.3.2 with WPG2 3.0.2

WPG2 Validation all checks out OK.

WordPress is installed in the www/root and so too is Gallery2.

If you visit the embedded galley at [url removed, login to view] and try cliking on any of the gallery images it will return wih the same page.

The htaccess file in the www/root is:

# BEGIN Url Rewrite section

# (Automatically generated. Do not edit this section)

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /[url removed, login to view]

RewriteCond %{REQUEST_FILENAME} -f [OR]

RewriteCond %{REQUEST_FILENAME} -d [OR]

RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php

RewriteCond %{REQUEST_URI} !/[url removed, login to view]$

RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /[url removed, login to view]([0-9]+)-([0-9]+)/

([^/?]+)(\?.|\ .)

RewriteCond %{REQUEST_URI} !/[url removed, login to view]$

RewriteRule . /gallery2/[url removed, login to view];g2_itemId=%1&g2

_serialNumber=%2&g2_fileName=%3 [QSA,L]

RewriteCond %{THE_REQUEST} /[url removed, login to view]([^?]+)(\?.|\ .)

RewriteCond %{REQUEST_URI} !/[url removed, login to view]$

RewriteRule . /[url removed, login to view] [QSA,L]

RewriteCond %{THE_REQUEST} /[url removed, login to view]([^?]+)(\?.|\ .)

RewriteCond %{REQUEST_URI} !/[url removed, login to view]$

RewriteRule . /[url removed, login to view]

edirect&g2_filename=%1 [QSA,L]

</IfModule>

# END Url Rewrite section

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /[url removed, login to view] [L]

</IfModule>

# END WordPress

Skills: Anything Goes, WordPress

See more: root info, openssl, mysqli, freebsd, edit rewrite, php wordpress url rewrite, htaccess apache, fix root, htaccess problem, htaccess mod_rewrite, wordpress gallery rewrite, patch images, php rewriteengine, wordpress rewrite htaccess, wordpress validation, htaccess rewriteengine, php htaccess rewriteengine, rewriteengine, rewritebase htaccess file, php url rewrite htaccess

About the Employer:
( 15 reviews ) Saugerties, United States

Project ID: #1942226