Wordpress Permalinks - advice needed

Discussion in 'WordPress' started by gordano, Apr 20, 2011.

  1. #1
    I have moved my wordpress blog but can not get the permalinks to work.

    Previous hosting was set up with permalinks as:

    my-blog-name.com/2011/04/20/sample-post/

    But new hosting has "index.php" in the middle, e.g.

    my-blog-name.com/index.php/2011/04/20/sample-post/

    Thus none of my blog links work.

    Any suggestions on how I can fix this? i.e. with no "index.php" in the url

    .. I have tried using the custom links option but then none of the posts are displayed. The only way posts are displayed is when I use this format my-blog-name.com/2011/04/20/sample-post/?p=123

    Thanks

    Gordano
     
    Last edited: Apr 20, 2011
    gordano, Apr 20, 2011 IP
  2. DianRibut

    DianRibut Peon

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use one plugin,permalink redirect. it automattically redirect old pemalink to new permalink,you can downoad it at wordpress.org :)
     
    DianRibut, Apr 20, 2011 IP
  3. gordano

    gordano Active Member

    Messages:
    843
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    70
    #3
    Thanks DianRibut

    I also found that another way is to edit the .htaccess fil including the following script .. in case anyone else on DP would find this useful

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
     
    gordano, Apr 20, 2011 IP
  4. saptakmandal

    saptakmandal Active Member

    Messages:
    365
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #4
    best way is to edit your htaccess file ..it should work ..
     
    saptakmandal, May 1, 2011 IP
  5. dcristo

    dcristo Illustrious Member

    Messages:
    19,776
    Likes Received:
    1,200
    Best Answers:
    7
    Trophy Points:
    470
    Articles:
    7
    #5
    When you update the permalinks it automatically changes the .htaccess file.
     
    dcristo, May 1, 2011 IP
  6. minivanman

    minivanman Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    minivanman, May 1, 2011 IP