Hello all,
This is a continuation of a question I asked here. Basically, what I'm trying to do is map my ABOUT page (currently at /?page_id=2) to /about/ without changing my entire permalink structure.
In the last thread, poster mercime suggested that I check out the Custom Permalinks plug-in. I gave it a shot, but ran into some problems. The redirected /about/ page gave me a 404 error.
I emailed the creator of the custom permalinks plug-in, and he recommended adding the following to my .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
The trouble is that I already have the following rule defined in my .htaccess file:
ErrorDocument 404 /index.php?error=404
...and adding the suggested code breaks my custom 404 pages, causing bad urls to redirect to the index instead. The creator of the plug-in said:
I'm afraid I'm not sure - I'm fairly certain mod_rewrite when used as a catchall (the way WordPress does it), and an ErrorDocument are mutually exclusive, because they fulfil the same function. I think this is a question for the WP forums.
Does anyone know how I can include the mod rewrite rule in my .htaccess file without breaking my custom 404 pages? Any help would be greatly appreciated.