Strange URL structure upon reinstall

thisliquidspace

Joined: 2010-10-25
Posts: 8
Posted: Wed, 2010-10-27 15:58

I have had to reinstall my version of Gallery 2 which is integrated with Drupal 5. It all works fine but for the following issue:

The URLs before were as follows:

http://wildimages.tv/gallery/v/aerials/Cana08019.jpg.html

after the reinstall they are now:

http://wildimages.tv/index.php/gallery/v/aerials/Cana08019.jpg.html?q=gallery

Which causes problems as the Google indexes are point towards the old URLs. The system is using URL REwrite with a standard setup:

Show Item = gallery/v/%path%

The Drupal module reports everything ok, and I've reinstalled a couple of times and deleted the rules from the drupal .htaccess file (to no effect). Rules were set as follows:

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

RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . - [L]
RewriteCond %{THE_REQUEST} /gallery/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !/main\.php$
RewriteRule . /main.php?g2_path=%1 [QSA,L]
</IfModule>

anyone come across this before at all ?

cheers,

mark

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-10-27 16:42

Ensure that the URL Rewrite module is activated and configured under Site Admin > Plugins and Site Admin > URL Rewrite

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thisliquidspace

Joined: 2010-10-25
Posts: 8
Posted: Wed, 2010-10-27 17:06

hi nivekiam,

I just wanted to say thanks for your help previoulsy. I managed to get the images back by going through the install process but not changing any settings. something somewhere wasn't configured right I imagine. BTW, I removed the thread as the site specific detail was more than I wanted to share permanently...

as for the URL ReWrite module, it is enabled and setup as detailed in the post above.

cheers,

mark

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-10-27 17:15
Quote:
BTW, I removed the thread as the site specific detail was more than I wanted to share permanently...

So any information in that thread is gone and of no help to anyone else now and now, IMO, a waste of my time. That isn't going to win any friends with me. If you don't want site specific stuff posted for eternity, just edit your posts to remove that information, but please do not delete the thread. Doing so will cause me to not help :)

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thisliquidspace

Joined: 2010-10-25
Posts: 8
Posted: Wed, 2010-10-27 17:19

You know what, it's a fair point, and one that I'd thought of *after* I'd hit delete. In hindsight, editing the URLs out of the messaging would have been a much better solution...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Wed, 2010-10-27 18:45

As long as you see the error of your ways :) (not that any of us are perfect)

Just want to make sure in this thread, you've gotten stuff working again, right?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thisliquidspace

Joined: 2010-10-25
Posts: 8
Posted: Thu, 2010-10-28 09:57

hi nivekiam,

I do! and as way of thanks for your help (and an apology), I've donated $20 to the support fund! :-)

in answer to your question, I have got the gallery working again, images are showing as they should, but the URLs are now as described above.

you can see for yourself here:

http://wildimages.tv/gallery

I tried the reinstall a couple of times, and reviewed htaccess, but can't work out where the errant URL is coming from...

any pointers would be great!

cheers,

mark

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-10-28 13:27

Ah I think I see:
http://wildimages.tv/g2/main.php/gallery/v/aerials/

It appears the option you're using for URL Rewrite is "pathinfo" instead of mod_rewrite. IIRC, the only way to fix that is to uninstall the URL Rewrite module (Site Admin > Plugins) from G2 (loosing your settings you've set so write them down Site Admin > URL Rewrite)

Then reinstall it, then you'll have the option to select mod_rewrite as the method instead of pathinfo.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
thisliquidspace

Joined: 2010-10-25
Posts: 8
Posted: Thu, 2010-10-28 16:22

brilliant,

that worked !

many thanks,

mark