Rewrite wooooooes with upgrades

dpaule

Joined: 2003-10-07
Posts: 30
Posted: Tue, 2008-01-29 17:28

I've had everything working nicely before with an older version. However, when I click on an image within the embedded galley a 404 error results. I suspect it being rewrite rules problems:

My system:

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.4 apache
Webserver = Apache/1.3.39 (Unix) mod_perl/1.30 PHP/5.2.4 with Suhosin-Patch mod_interchange/1.34 mod_ssl/2.8.30 OpenSSL/0.9.8e
Database = mysqli 5.0.45, lock.system=flock
Toolkits = ArchiveUpload, ImageMagick, LinkItemToolkit, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = FreeBSD spjd46bsm.whatsthebigidea.com 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #7: Tue Jan 15 09:48:03 EST 2008

:/usr/obj/usr/src/sys/SMP i386
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Rows in GalleryAccessMap table = 5
Rows in GalleryAccessSubscriberMap table = 11
Rows in GalleryUser table = 2
Rows in GalleryItem table = 9
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0

My .htaccess file at /usr/home/dpaule/www/wordpress/.htaccess

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

RewriteBase /http://www.CreativeCrib.com/

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . - [L]

RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/sitemap(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_view=sitemap.Sitemap [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/rss/([^\/\?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_view=rss.Render&g2_name=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/srss/([0-9]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_view=rss.SimpleRender&g2_itemId=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/key/([^?/]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_view=keyalbum.KeywordAlbum&g2_keyword=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/f/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_controller=permalinks.Redirect&g2_filename=%1 [QSA,L]
RewriteCond %{THE_REQUEST} /http://www.CreativeCrib.com/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/http://www.CreativeCrib.com/wpg2$
RewriteRule . /http://www.CreativeCrib.com/wpg2?g2_path=%1 [QSA,L]
</IfModule>

# END Url Rewrite section

I've included images of the embedded Gallery2 Rewrite Rules settings.

This attempt represents a new install of Gallery2 and wpg2.
Thanks for any help.

AttachmentSize
URL_REWRITE.jpg173.81 KB
URL_REWRITE_test.jpg146.39 KB
 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-01-29 21:35

I can see the first issue -> RewriteBase /http://www.CreativeCrib.com/ is illegal I am not sure how you have set your rewrite base to this (the WPG2 plugin certain does not set a value like this) as it is wrong.

Please navigate via WPG2 -> Gallery2 -> Site Admin -> URL Rewrite -> Setup and check the values under Embedded Setup

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
dpaule

Joined: 2003-10-07
Posts: 30
Posted: Wed, 2008-01-30 00:06

I remove the "/" though it keeps adding the "/" before the url: /http://www.CreativeCrib.com/

 
dpaule

Joined: 2003-10-07
Posts: 30
Posted: Wed, 2008-01-30 00:08

So I just left the "/" and remove the url and it works!!! Thanks for the tip.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-01-30 21:36

Yeah the / would be added by the WPG2 plugin, no idea how you managed to get the http://www.CreativeCrib.com/ value.. Glad you got it all working :)

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
dpaule

Joined: 2003-10-07
Posts: 30
Posted: Wed, 2008-01-30 22:21

Unfortunately, the http://www.CreativeCrib.com/ keeps coming back without any input from me. Any ideas?