Thread Starter
kak
(@kak)
This is the .htaccess from the site with WPG2:
# 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_FILENAME} !/wp-gallery2\.php$
RewriteRule . – [L]
RewriteCond %{QUERY_STRING} view=core.DownloadItem
RewriteCond %{HTTP_REFERER} !://prat.kak.net/ [NC]
RewriteCond %{HTTP_REFERER} !://blog.kak.net/ [NC]
RewriteCond %{HTTP_REFERER} !://blog.kak.net/ [NC]
RewriteCond %{HTTP_REFERER} !://gallery.kak.net/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule . /wp-gallery2.php? [F,L]
RewriteCond %{THE_REQUEST} \ /d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/wp-gallery2\.php$
RewriteRule . /main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} \ /([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_FILENAME} !/wp-gallery2\.php$
RewriteRule . /wp-gallery2.php?g2_view=core.ShowItem&g2_path=%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 . /index.php [L]
</IfModule>
# END WordPress
Thread Starter
kak
(@kak)
This is the .htaccess from the site without WPG2:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thread Starter
kak
(@kak)
No one have had or have this problem?
Thread Starter
kak
(@kak)
That’s strange. Does anyone else using WP and WPG2 here and have the permalinks working just fine? If so, how is your .htaccess file?
Thanks in advance!
Thread Starter
kak
(@kak)
If I replace the .htaccess (for the site with WPG2 installed) without the WPG2-related stuff inside, permalinks works just fine. But WPG2 doesn’t work of course. So it’s certain that the .htaccess file is read.
What is it with the WPG2-related stuff in the .htaccess who fuck up the permalinks in WP?
I’m getting the exact same error on a site.
All I get is blank page too =\
Thread Starter
kak
(@kak)
I’ve tried out something new on another site (same hosting company) .. if you use permalinks on WP but not mod_rewrite on gallery2, the permalinks in WP works fine. But I want them both to work! π
Thread Starter
kak
(@kak)
The problem and the solution was simple. I’ve changed the mod_rewrite for G2 back to default, and everything works perfectly. The change I had done was to change the “show item” url rewrite from “v/%path%” to “%path%”. Now when it’s “v/%path%” again, everything works perfectly!
Hi kak,
i have the sam problem. But in the setting, when i want to migrate vom g1 to g2 i have to use “%path%” as it’s greyed out. So i can’t change the path to something else. can anybody help?
thank you,
andre