404 error when using non-default WordPress Permalink

aliby

Joined: 2008-05-22
Posts: 5
Posted: Thu, 2008-05-22 06:25

Hey all,

I have been using a Month/Post name permalink for as long as I can remember. Now after upgrading to WordPress 2.5.1 and WPG2 3.0.6, my WPG2 link no longer works (http://www.noahjaehnert.com/wpg2).

Linking to the page id/normal WordPress page (http://www.noahjaehnert.com/?page_id=1065) works just fine when I use the default WordPress permalinks

Any ideas why this is?

Thanks,

-Noah

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-05-22 07:09

Hiya aliby,

Unfortunately both of those links returned 404 errors which indicates something is not right with your WP Permalink rules. Navigate over to your Permalink (Settings -> Permalinks) and select save changes.

This will force Wordpress to regenerate the permalink rules which should reset everything back again..

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

 
aliby

Joined: 2008-05-22
Posts: 5
Posted: Sun, 2008-05-25 19:25

Hi Ozgreg,

I enabled the default permalink and I no longer get the 404 error (on the page here: http://www.noahjaehnert.com/?page_id=1065)

However, if i switch it to the Month/Post name permalink, i still get the 404 error...

Any thoughts?

-Noah

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-05-25 22:48

Hiya Aliby,

I certainly do not get a 404 when I am using the Month/Post (/%year%/%monthnum%/%postname%/). WPG2 is an internal Wordpress Page so you should never be getting a 404 when navigating to the initial WPG2 Page (http://www.noahjaehnert.com/wpg2).

You are very welcome to post your permalink rule so I can double verify however it sounds more like an internal Wordpress issue than a WPG2 one..

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

 
aliby

Joined: 2008-05-22
Posts: 5
Posted: Mon, 2008-05-26 00:51

Hello again Ozgreg,

Sorry if this was confusing. I am having issues getting to the initial wpg2 page. I guess I was referring to the same thing as the Month/Post one, when in fact that's not the case.

Here is my WordPress .htaccess info:

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

RewriteBase http://www.noahjaehnert.com/

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

RewriteCond %{THE_REQUEST} http://www.noahjaehnert.com/d/([0-9]+)-([0-9]+)/([^/?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !http://www.noahjaehnert.com/wpg2$
RewriteRule . http://noahjaehnert.com/gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3 [QSA,L]
RewriteCond %{THE_REQUEST} http://www.noahjaehnert.com/v/([^?]+)\.davmount(\?.|\ .)
RewriteCond %{REQUEST_URI} !http://www.noahjaehnert.com/wpg2$
RewriteRule . /wpg2?g2_view=webdav.DownloadDavMount&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} http://www.noahjaehnert.com/w(/[^?]*)?(\?.|\ .)
RewriteCond %{REQUEST_URI} !http://www.noahjaehnert.com/wpg2$
RewriteRule . /wpg2?g2_controller=webdav.WebDav&g2_path=%1 [QSA,L]
RewriteCond %{THE_REQUEST} http://www.noahjaehnert.com/v/([^?]+)(\?.|\ .)
RewriteCond %{REQUEST_URI} !http://www.noahjaehnert.com/wpg2$
RewriteRule . /wpg2?g2_path=%1 [QSA,L]
</IfModule>

# END Url Rewrite section

# BEGIN WordPress

# END WordPress

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2008-05-26 02:21

I actually meant your Wordpress Permalink Rule.. It is listed in the Wordpress Permalink Page..

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

 
aliby

Joined: 2008-05-22
Posts: 5
Posted: Tue, 2008-05-27 20:59

Ah sorry about that...

Right now all it says is Default (http://www.noahjaehnert.com/?p=123)

When I change to Month and Name, Custom Structure changes to: /%year%/%monthnum%/%postname%/

-Noah

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-28 03:12

That rule you posted is the same rule I tested a few posts back and I certainly do not get a 404 error. I noticed in your .htaccess you have some Gallery2 rewrite rules (they are between # BEGIN Url Rewrite section and # END Url Rewrite section, my suggestion would be to DELETE your wordpress .htaccess then select the Month and Name Rule and see if you get the same 404 errors.. Please DO NOT activate the Gallery2 rewrite module for now.. I just want to see if the issue is internally inside Wordpress or not..

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

 
aliby

Joined: 2008-05-22
Posts: 5
Posted: Wed, 2008-05-28 14:06

I have deleted the .htaccess and turned Gallery2 rewrites off.

The .htaccess looks like this: # BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

And I still get this error:
Not Found

The requested URL /wpg2 was not found on this server.

Apache Server at www.noahjaehnert.com Port 80

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-06-01 22:40

aliby,

Sorry but I cannot resolve this for you, and I would suggest you take this issue to the Wordpress support forums as this a Wordpress Permalink issue not a WPG2 one. You should always be able to at least navigate to the /wpg2 page as it is just another Wordpress Page and Wordpress controls this, not WPG2.

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