1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Permalink Help Needed

Discussion in 'WordPress' started by kiteguy123, Jan 15, 2009.

  1. #1
    Hi.
    I've recently started a health blog (see it here), and, as you can see if you browse through the posts, the links are in the format:

    myurl.com/?p=43

    But I want them to be in the format:

    myurl.com/2009/01/post-name/

    or even better:

    myurl.com/category/post-name/

    How do I do this?
    Everytime I try and edit it it says edit .htaccess, but what is this and how do I get to it?

    I'm running Wordpress 2.7 if that makes any difference.

    Rep Will be given!
    Thanks!
     
    kiteguy123, Jan 15, 2009 IP
  2. arramuse

    arramuse Active Member

    Messages:
    512
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #2
    I think the most and good to use is myurl.com/category/post-name/

    " That's SEO friendly Permalink "

    for "Everytime I try and edit it it says edit .htaccess"

    You may not setting .htaccess to writable mode,
     
    arramuse, Jan 15, 2009 IP
  3. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #3
    Where can I find the .htaccess file?

    And, yeah, I prefer the /category/post-name/ because it looks better and is probably better for SEO :)
     
    kiteguy123, Jan 15, 2009 IP
  4. arramuse

    arramuse Active Member

    Messages:
    512
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #4
    See on your Public_html.

    you should read this http://wordpress.org/search/htaccess

    Good Luck !!
     
    arramuse, Jan 15, 2009 IP
  5. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #5
    Hmm, I've uploaded a new .htaccess file, and it's blank. What do I need to put in the file to make the permalinks /category/post-name/ ?

    Thanks.
     
    kiteguy123, Jan 15, 2009 IP
  6. arramuse

    arramuse Active Member

    Messages:
    512
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #6
    - first upload the htaccess file with text file.

    - Rename it with .(dot)htaccess ..
     
    arramuse, Jan 15, 2009 IP
  7. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #7
    What do you mean by 'with text file'?
    I made a new (blank) document in Notepad and uploaded it. I then renamed it .htaccess... what now?! :eek:
     
    kiteguy123, Jan 15, 2009 IP
  8. arramuse

    arramuse Active Member

    Messages:
    512
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #8
    '
    my mean "text file is file extensions Like notepad or etc.."

    yupz that's right, Btw have your fixed the error ?
     
    arramuse, Jan 15, 2009 IP
    kiteguy123 likes this.
  9. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #9
    What do I put in the text file?
    At the moment it's just empty. Do I put %category%/%post-name%/ ? :confused:
     
    kiteguy123, Jan 15, 2009 IP
  10. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #10
    if you will see in your WP admin where you saw , your .htaccess is not writable, in the box below it there is piece of code, copy that, and paste it on the .htaccess you created, now on the permalink tab on WP admin, check button custom permalink and write this /%category%/%postname%/
     
    mann3r, Jan 15, 2009 IP
  11. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #11
    Hmm, when I do that I get this message:

     
    kiteguy123, Jan 15, 2009 IP
  12. influx08

    influx08 Guest

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    I am trying to do the same. Have copied and pasted the text into a .htaccess file, uploaded it and when i try and view a post it says page not found... hmmm
     
    influx08, Jan 15, 2009 IP
  13. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #13
    can you post what have you pasted on .htaccess, and also the url of your blog, if you do not want to share it publicly, you can pm me
     
    mann3r, Jan 15, 2009 IP
  14. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #14
    I'd posted
    in .htaccess and that was it. I've renamed the .htaccess file back to 1.htaccess file for the moment, so you won't be able to see the error, but the blog is linked in my first post :)
     
    kiteguy123, Jan 15, 2009 IP
  15. influx08

    influx08 Guest

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #15
    This is what i have put in my htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    I cant post urls yet but if you see my website on the right simply replace www with blog

    Thanks
     
    influx08, Jan 15, 2009 IP
  16. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #16
    can you try to replace that
    RewriteBase / to
    RewriteBase /blog
     
    mann3r, Jan 15, 2009 IP
  17. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #17
    kitty,
    please use this instead on .htaccess file
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    and your WP admin->Settings->Permalink->under custom setting, click custom structure and place this code /%category%/%postname%/
     
    mann3r, Jan 15, 2009 IP
    kiteguy123 likes this.
  18. influx08

    influx08 Guest

    Messages:
    72
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    brilliant. Thank you very much!

    kiteguy123 make sure the htaccess isnt a text file when you save it. delete the .txt and save it as all files on the drop down menu
     
    influx08, Jan 15, 2009 IP
  19. kiteguy123

    kiteguy123 Well-Known Member

    Messages:
    1,592
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    115
    #19
    Thanks, all sorted now! Repped everyone who helped :)

    I'd named it properly and it had the right extension, I'd just put the wrong thing in the .htaccess file :eek: Anyway, all sorted now :D
     
    kiteguy123, Jan 15, 2009 IP
  20. mann3r

    mann3r Peon

    Messages:
    1,416
    Likes Received:
    100
    Best Answers:
    0
    Trophy Points:
    0
    #20
    great, but the site is still not loading for me.
     
    mann3r, Jan 15, 2009 IP