How to configure WordPress to create search engine friendly URLs for permalinks
Wednesday, August 25th, 2004 at
7:22 pm
Filed under: blogging • SEO • Weblogs • WordPress
Like this post? Subscribe to my RSS feed and get loads more!




Thank you soooo much for this page! I’ve spent the past two or so weeks really studying blogware options, as I want to move away from blogger.com. While I’m quite comfortable with handcoding HTML & CSS, validating, and even customizing a few perl scripts, the blog world is new to me, in the hands-on sense. WP seemed to be a great choice, but I despised the no-information-given URLs it creates. Your page perfectly responds to that concern.
Now, if I can just get up the heart to delve into the unknown (to me) world of php and mySQL. Fortunately, my (new) host, Pair Networks, has the required software in place. I’ll do some more reading about the basics, so come Labor Day weekend, I can take a huge cup of coffee, and dig in. By then, I *should* have made the final choice between b2evolution and wordpress.
I owe ya one! Thanks again.
pam
Thank you, I tried it on an WP blog I maintain and it works. Just did as you write and put the .htaccess in the document root, which in my case is not the wordpress directory.
If you care you can find it here: http://www.reister.org. Its my family design and sculpture activity.
One item to note, if you have links to individual posts either in your blog or from other sites, editting the .htaccess may cause those links to be broken if you have editted the permalinks in the past. I would recommended that you add in the additional lines rather than a replacing the file completely. That seemed to work better on my site it in my site.
Mark
/%postname%.htm
I added the above code in my permalink setting and entered the generated code to an htaccess file.
i added some new posts to the blog since completing the steps above.
the problem is i seem to have blown up my wp blog. what ever link in the post i click — post title, comment, — the page isn’t found. i can’t add comments to posts anymore.
it’s a new blog — my first one.
ne1 know what i must do to fix this problem?
I wanted to impliment this because I feel it would be much better. It worked fine until I clicked on my categories. I found that my template was thrown into chaos and since I’m a newbie at all this, I didn’t know how to fix the problem and had to revert back to the default.
Do you have any idea what went wrong, and how I can fix it?
Thanks for this way. But when I click any of my post, getting the following error:
Not Found
The requested URL /wp/toyota-expert-says-high-volume-hydrogen-powered-fuel-cell-cars-at-least-25-years-away.htm was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I tried this, it works – except for when it is listing all the months – wordpress no longer shows the link (www.example-site.com/archives/10/03) – instead it just shows (www.example-site.com/archives).
How do I fix this?
Thank you!
When I click one of the months under Archives I get page not found and this is the url:
http://twowayradiodirectory.com/blog/%postname
The messages do have the correct url with the postname in them.
Anyone know a fix?
Thanks
I fixed it by using
/archives/%year%/%monthnum%/%day%/%postname%/
instead of just
/%postname%.htm
Not sure what the .htaccess is for (color me duh I’m blushing) but i ended up deleting it to get this to work. The links work fine but when I click on the permalink, it breaks all the graphics (which may explain what the .htaccess is for LOL……..
what about other linking fucnctions… my wordpress was linking with index.html?m=22341235 etc, now they are all gone
Help please
Blogger.Com Blogger is my very first blogtool I knew. At first, I only know a bit about weblog. I only made a personal site. Using iframe, and got hosted at free hosting service. And when I wanted to “make a page where I can post something regularly, I posted it manually. Yes, manually
Googling, and surfing on the net… and I found Blogger. Then I surfed to site, and found Donnie’s site. My question (at that time “How to make such site?”). -_- I got my first Blogger site hosted at Blog*Spot. No commenting system, no referer. Nothing, just a simple weblog.
ive followed your blog about the permalinks but now the “pages” ive made dont display in the side bar. how can i fix this?
http://www.clearwatermed.net
sorry the url is http://www.clearwatermedia.net i think it might be because the pages are now in folders?
AWESOME thanks for explaining it so easily, had such a hardtime w/ WordPress’ explaination.
Very nice. Thanks for explaining it, WordPress is a very interesting blog software.
Thanks so much for the great tip! My blog is about SEO and I’m a newbie at blogging so your information was the best of both worlds for me. I read the other posts on this thread and found a reference that might help some folks out:
http://codex.wordpress.org/Using_Permalinks#Fixing_.28.htaccess.29_Generation_Issues
I hope this helps. Thanks again for the great tip!
Hi,
Even I had seen many answers, I couldn’t find the way to my server to work with friendly URLs.
This is the error I am getting everytime.
500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@kakoky.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.48 Server at http://www.XXXXXX.net Port 80
word path now lets see how good bloggin is
Where is the .htaccess file supposed to go when I’m using WorPress thru a DreamHost hostplan? TIA.
Hi,
I’ve installed wordpress and used this structure
/archives/%postname%/
and wrote a test post titled – testing WordPress
The permalink generated is
http://www.mysite.com/blog/archives/testing-wordpress/
but when you click on it an error is generated saying
“The requested URL /blog/archives/testing-wordpress/ was not found on this server.”
What could be the problem. Please advise
Gerald
Thanks for the guide.
I’m using the custom setting and everything seems to work fine including the category option. The only problem seems to be the Title on top. It looks like this:
Site name >> Blog Archives >> Custom Title
Even though I post new articles/news/blogs the word ‘Blog Archives’ continue to appear on Title of the page. Can this be done away with? I want it to look like this:
Site name >> Custom Title
Thank you in advance!
@Kurt – what displays on the title of your page is wholly controlled by what theme you are using for your WordPress blog. You can either change to a different theme that displays the title the way you want, or modify your current theme to customize the title on the category page. Page titles are not affected by permalinks. Hope that helps!
Thanks for this post – helped me fix a problem with my htaccess file and now permalinks are working!
Worked like a charm – thanks for helping out!
Terrifying! But worked great. We love your site, thanks for all the help – you rock!
Thanks for the great tutorial. I really appreciate it.
very nice smile.
Updated the links to your article. All the best for your new blog home.
Sadly I did not manage to get across the .htaccess limitation on yahoo. It is just plain silly and annoying. Do not have enough time to cancel my account with yahoo and shift to some other provider, and hence, will have to make do with this as of now, and home yahoo allows .htaccess files or wordpress comes up with an alternate way of managing permalinks.
Emily – you mentioned using /%postname%.htm
Does this apply for WP 2 also
I ask because I had the option to check:
/%year%/%monthnum%/%day%/%postname%/
Do I still place your rewrite code in the .htacess file for it to work (it was not created with the installation)?
Do I include the[QSA] at the bottom of your code?
Thanks
Fantastic tutorial!
Fantastic Tutorial!!!!
… I installed WP on a Windows2003 Server. So IIS wouldn’t understand a .htacces file. Only result I get is 404
Has anyone found a workaround for windows platform?
hiya,
worked like a charm on my website Dublin Events Blogs. Thanks !!
Nice one
There is other problem that my-url is not as good at my_url. The later gets better SERPs.
Ihave tried this method, but .htaccessfileis creating problemfromtimeto time. It suddenly stops functioning and if someone clicks the link it says “the page not found” then I upload the .htaccess file again and the problem will be solved but after some time it again gives the same error. I do not know why.
Perhaps you are not changing the permissions of .htaccess file after you are done with updating it.
While you update this file, the permissions should be 666, after finished editing, set it to 664.
Thank You soooo much, I have been trying for weeks to get this figured out. You are a GODSEND! Smart and Good Looking. Just read your about me page. Same health experiences, I feel your pain. Keep smilin’!
Excellent guide. Thanks alot
Thx for a great tutorial. Have a great day
I’m using WP on my SEO Blog and this tutorial has been really helpful! Thanks a lot
Very good site. Thank you.
Very good site. Thank you:-)
Very good site. Thank you:-)
Good site. Thank you:-)
Good site. Thanks!
Thank you so much. I’ve just used this inf0 to get permalinks working on my latest site.
Great stuff!!
your post is great and i have done the changes but i am facing one problem.. my trackback links show
http://www.styleikon.com/an-impressionable-age.htm/trackback
instead of http://www.styleikon.com/an-impressionable-age.htm
why does it add “trackback” at the end of the link??