Dear experts!
I've managed to upgrade to 3.0.4 without too much of a headache!
The only problem i have is with removing the /index.php/
I would like it to say:
http://www.alternativephotography.com/gallery3/Olive-Dean
and not
http://www.alternativephotography.com/gallery3/index.php/Olive-Dean
as it did before the upgrade. I've played with the .htaccess files for an hours now without any luck. Please help me.
In my root htaccess file it says:
Quote:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^alternativephotography\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.alternativephotography\.com$
RewriteRule ^gallery3\/index\.php\/$ "http\:\/\/www\.alternativephotography\.com\/gallery3\/" [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.alternativephotography\.com$ [NC]
RewriteRule ^(.*)$ http://www.alternativephotography.com/$1 [L,R=301]
in my /gallery/ folder the htaccess file it says
Quote:
# <IfModule mod_rewrite.c>
# Options +FollowSymLinks
# RewriteEngine On
# RewriteBase /gallery3
# RewriteCond %{HTTP_HOST} !^www\.alternativephotography\.com$ [NC]
# RewriteCond %{THE_REQUEST} /gallery3/(.*)$
# RewriteRule ^(.*) http://www.alternativephotography.com/gallery3/$1 [L,R]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
# RewriteRule ^index.php/(.*) $1 [QSA,R,L]
# </IfModule>
I've tried both with RewriteBase /gallery3 and RewriteBase /gallery3/ but no difference.
In my gallery/var folder i have another htaccess file (should it even be here?) that says:
Quote:
<IfModule mod_rewrite.c>
#Options +FollowSymLinks
RewriteEngine On
RewriteBase /gallery3
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^$ index.php?kohana_uri=$1 [QSA,PT,L]
RewriteRule ^index.php/(.*) $1 [QSA,R,L]
</IfModule>
I've tried both with RewriteBase /gallery3 and RewriteBase /gallery3/ but no difference here either.
Can anyone solve this puzzle?
I'd really appreciate some help.
Posts: 1857
Staring at the beginning:
Did you uncomment the last section fo the gallery htaccess file (meaning take out the "#" sign before the lines)?
Make the RewriteBase /gallery3/
Report back.
Posts: 150
Thanks for replying. No, it's exactlty like that. I've just done copy paste from the file. Should i be removing the #?
I've tried both /gallery3/ and /gallery3 but none of them works.
Posts: 1857
Yes, you should.
The "#" sign tells the server to ignore the line; with the #, it's basically like the line's not even there.
Posts: 150
It now looks like this:
htaccess file in the /gallery/ directory:
htaccess file in the /var/ directory:
Thank you! It now works! Just one final question while you're on the line... why do i need 3 htaccess files?
Thanks a lot!
Posts: 1857
I don't know why you have 3 htaccess files. Every site is different.
Posts: 150
Ok! Just deleted the one form the /var/ directory and it still works. Thanks a lot for taking the time to help me.
Posts: 1
Try deleting the /var/ directory and check it will surely work without any errors.
Posts: 150
Do you mean the htaccess file in the /var/ directory? That one is deleted, and it works. I can't delete the /var/ directory, that's where all the albums are, right?
Posts: 1857
RIGHT. If you delete the var directory, the Gallery is screwed and your photos are gone.