mod_rewrite = voodoo()
Djerk | 20 Feb 2009 19:10Been hacking away as I found out I couldn’t edit a page nor did the page show up. My about page linked to the gallery instead. Spilt some blood and danced around on the keyboard loads. the result:
Note to self: DO NOT alter permalinks for pages! my about page was linked as who-am-i and this caused major issues. I also turned off the automatic XHTML corrections in the write-options page, not sure what it does so I’d rather get an error when writing a page than have my site go down. Priorities they say…
next to that my gallery now runs mod_rewrite in safe mode which works fine and I’ve re-linked an image on my about page. I recon the link was old style from WP 2.3 and older versions of WPG2 and Gallery2.
Please let me know if you find any issues, particularly with missing images. I hope all is well now and my server won’t die another terrible dead due to rewite/permalink hell.
Finally I have found the real culprit: /.htaccess was messing with things. What made it hard to find was that this file has been in place for a few years now. Upgrading WordPress to v2.7 as well as WPG2/Gallery2 tipped the balance.
What worked?
RewriteRule ^$ /wordpress/ [R=301,L]
Instead of:
RewriteCond %{REQUEST_URI} !^/.+
RewriteRule ^(.*)$ /wordpress/ [R=301,L]
Share this:
- Click to share on X (Opens in new window) X
- Click to share on LinkedIn (Opens in new window) LinkedIn
- More
- Click to email a link to a friend (Opens in new window) Email
- Click to share on Tumblr (Opens in new window) Tumblr
- Click to share on Reddit (Opens in new window) Reddit
- Click to share on Pinterest (Opens in new window) Pinterest
- Click to share on Pocket (Opens in new window) Pocket
- Click to share on Facebook (Opens in new window) Facebook
Tags: linkedin,mod_rewrite,XHTML
Categories: Main blog
Comments Off on mod_rewrite = voodoo()
No Responses to “mod_rewrite = voodoo()”