permalink help please

Discussion in 'WordPress' started by 8everything, Jul 14, 2007.

  1. #1
    My permalink setting on my block is currently at default, however I want to change it to:

    Date and name based

    (so it's better so it's better for SEO)

    Anyways, when I do this.. I get an error. How do I fix this? Is there something I need to modify on my host? (I'm using Cpanel)

    Thanks :)
     
    8everything, Jul 14, 2007 IP
  2. FOX LORE

    FOX LORE Notable Member

    Messages:
    8,118
    Likes Received:
    408
    Best Answers:
    0
    Trophy Points:
    230
    #2
    Add the code below to .htaccess

    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

    Then wordpress Options , Permalink and custom .. I use

    Code:

    /%year%/%monthnum%/%day%/%category%/%postname%.html
     
    FOX LORE, Jul 14, 2007 IP
  3. sat123

    sat123 Banned

    Messages:
    1,600
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sat123, Jul 15, 2007 IP
  4. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #4
    I would also recommend setting it to /%category%/%postname%
    You may not need to modify .htaccess by the way.
     
    r3born, Jul 15, 2007 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    I am using /%category%/%postname%.htm to convert the URL to static.
     
    kailash, Jul 15, 2007 IP
  6. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #6

    Thanks

    I'm really new at .HTACCESS, how to I get access to this file and where/how to I insert this code? :eek:

    Thanks!

    BTW: tested out /%category%/%postname% :( I still get the same error
     
    8everything, Jul 15, 2007 IP
  7. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #7
    Login to your FTP, in my case .htaccess is found in the public_html folder.
    Download it, open in the text editor (make sure you have a backup copy though), add the text given by FOX LORE, save the file then upload it again and overwrite the old version.
     
    r3born, Jul 15, 2007 IP
  8. gr8liverpoolfan

    gr8liverpoolfan Notable Member

    Messages:
    6,719
    Likes Received:
    538
    Best Answers:
    0
    Trophy Points:
    285
    #8
    Read this http://codex.wordpress.org/Using_Permalinks
    Should help ya........
     
    gr8liverpoolfan, Jul 15, 2007 IP
  9. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Okay :) I found the file and downloaded it, however when I open it in notepad, the file is blank..

    Anyway I can download a good .HTACCESS file to add to my FTP? :eek:


    Thank you so much :)
     
    8everything, Jul 15, 2007 IP
  10. kiviniar

    kiviniar Notable Member

    Messages:
    1,964
    Likes Received:
    256
    Best Answers:
    0
    Trophy Points:
    255
    #10
    What is the url of your blog, will fix it up in the .HTACCESS and send u a download link
     
    kiviniar, Jul 15, 2007 IP
  11. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #11
    You can change permalink structure from your wordpress admin panel too :)
     
    MeetHere, Jul 15, 2007 IP
  12. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #12
    8everything, Jul 15, 2007 IP
  13. r3born

    r3born Active Member

    Messages:
    1,070
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    88
    #13
    Yep, it's supposed to be blank (again, IMO).
    Just add the text, upload it and give it a try.

     
    r3born, Jul 15, 2007 IP
  14. kiviniar

    kiviniar Notable Member

    Messages:
    1,964
    Likes Received:
    256
    Best Answers:
    0
    Trophy Points:
    255
    #14
    Have sent you the file details

    once u have uploaded it to your server, then login to your wp admin and update the permalink setting to "/%postname%/" (without the quotes)
     
    kiviniar, Jul 15, 2007 IP
    8everything likes this.
  15. 8everything

    8everything Peon

    Messages:
    16,350
    Likes Received:
    903
    Best Answers:
    0
    Trophy Points:
    0
    #15
    8everything, Jul 15, 2007 IP
    kiviniar likes this.