Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th May 2011, 09:58 AM   #1
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 368
Thanks: 107
Thanked 83 Times in 49 Posts
Blog Entries: 2
Default
Permalink Structure
Share on: 
fb share twitter share gplus share more share

I want to change my permalink structure so that the postnames are in the link, not just a number id. I know how to change it within WP, but I do not know how to change the htaccess file to make it work.

Does anyone know if there is a plugin to make this work more easily? I thought by changing that setting before starting the blog it might work, but even then it wanted me to change the htaccess. And I have other sites with lots of pages and posts, so I need something to make this simple for me.

Thanks.
keyconcepts is offline  
Unread 27th May 2011, 10:27 AM   #2
Watching you...
War Room Member
 
Istvan Horvath's Avatar
 
Join Date: 2008
Location: Waterdown, Ontario, Canada
Posts: 8,208
Thanks: 2,059
Thanked 3,699 Times in 2,243 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

2 options:
- make your .htaccess file writable (chmod 666) and WP will take care of it - NOT recommended

- when WP says you need to update your .htaccess file it also gives you exactly the several lines you need to copy/paste into your htacces file. Edit the file and upload it via FTP to your root directory. Done.

Istvan Horvath is offline  
The Following User Says Thank You to Istvan Horvath For This Useful Post:
Unread 27th May 2011, 12:26 PM   #3
WordPress Expert
War Room Member
 
haymanpl's Avatar
 
Join Date: 2010
Location: Australia
Posts: 316
Thanks: 1
Thanked 41 Times in 41 Posts
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

You don't need to change the htaccess file if you use the proper redirection plugin before you change to the custom permalink structure to /%category%/%postname%/

or /%postname%/

WordPress.org codex is not totally reliable and accurate.
haymanpl is offline  
The Following User Says Thank You to haymanpl For This Useful Post:
Unread 27th May 2011, 12:44 PM   #4
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 368
Thanks: 107
Thanked 83 Times in 49 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

Before getting haymanpl's reply, I tried to change the htaccess but could not find one. So I uploaded my own. At that point, the blog would not open at all. So I deleted it, and it came back, but still with the 404 because of the permalink change without the htaccess being updated. Where is the .htaccess file usually located?
keyconcepts is offline  
Unread 27th May 2011, 12:57 PM   #5
Watching you...
War Room Member
 
Istvan Horvath's Avatar
 
Join Date: 2008
Location: Waterdown, Ontario, Canada
Posts: 8,208
Thanks: 2,059
Thanked 3,699 Times in 2,243 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

Set your FTP to show "hidden files" and you will see it if it's there. It should be in the root directory, where all the WP files and directories are.
However, if you never worked before with the permalinks, maybe you don't have one.

This is all you need in that file:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Remember, the file doesn't have a "name" just an extension:
.htaccess

Istvan Horvath is offline  
Unread 27th May 2011, 01:12 PM   #6
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 368
Thanks: 107
Thanked 83 Times in 49 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

Well here is what I did. I put what you have there in a text file and saved it as 1.htaccess.rtf. I then uploaded it into the root and changed the name to .htaccess

Is that correct?

When I do that I get an "internal server error" when I try to access the page.

I really appreciate your help.
keyconcepts is offline  
Unread 27th May 2011, 01:31 PM   #7
Watching you...
War Room Member
 
Istvan Horvath's Avatar
 
Join Date: 2008
Location: Waterdown, Ontario, Canada
Posts: 8,208
Thanks: 2,059
Thanked 3,699 Times in 2,243 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

That sounds right... except I never use any word processor for editing file. Use Notepad or any other plain text editor!

If it still doesn't work, it's time to ask your host whether they support mode_rewrite or not.

Istvan Horvath is offline  
Unread 27th May 2011, 02:18 PM   #8
HyperActive Warrior
War Room Member
 
Join Date: 2010
Posts: 368
Thanks: 107
Thanked 83 Times in 49 Posts
Blog Entries: 2
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

Ok. I used TextEdit on my Mac, but for some reason it saved as a rtf. Thanks.
keyconcepts is offline  
Unread 27th May 2011, 03:21 PM   #9
Clau Tripon
War Room Member
 
clau82's Avatar
 
Join Date: 2009
Posts: 49
Thanks: 7
Thanked 4 Times in 4 Posts
Blog Entries: 1
Default
Re: Permalink Structure
Share on: 
fb share twitter share gplus share more share

Originally Posted by keyconcepts View Post

Ok. I used TextEdit on my Mac, but for some reason it saved as a rtf. Thanks.
It's OK, upload the file and rename it once it's on the server
clau82 is offline  
Closed Thread


Bookmarks

Tags
permalink, structure


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 08:33 PM.