Permalinks and broken links

Using Permalinks  in WordPress makes the url in the blog looks nicer. (they are activated here)

However, some problems could araise when permalinks are used.

My case as an example. Images uploaded thru the admin > upload page ends up in /wp-content/ Wordpress is good to provide some html code of link at uploaded image eg. <img scr="/wp-content/pic.png" />

 But in this case using that link gives you a broken image. Since my blog directory is /zz85/blog. Adding a "." works. <img scr="./wp-content/pic.png" />

After activiating permalinks, images are boken so I changed all the links to the full-path. Um um, not really wise choice.

So what could I have do? actually simple, just actually need to append my path to the images. like <img scr="/zz85/blog/wp-content/pic.png" />

How silly of me. But the 3rd idea came to me that Apache mod_rewrite in htaccess could fix it. Using the wordpress given img link combined with this "RewriteRule ^/wp-content/?$ /zz85/blog/wp-content/$1" could perhaps make them work flawlessly. Anyone tried that before?

Btw, other changes have to be considered if you want full site permalinks compliment. Example http://www.jonabad.com/forums/topic.php?id=5 will show you how to modify LiveCalendar to use Permalinks too.

0 Responses to “Permalinks and broken links”


  1. No Comments

Leave a Reply