Home Forums WordPress Plugins Hide My WP Redirect all normal links to permanent links

This topic is: not resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3881
    ibergag
    Pro
    Post count: 34

    Hello,

    I would like to know how can i redirect all normal links to permanent links like :

    From http://exemple.com/?entry=150 to http://exemple.com/poste-title-link/

    Thanks for help,

    #3885
    Suman M.
    Post count: 12480

    Hi, login to wp-admin, and go to Settings >> Permalinks (www.yourdomain.com/wp-admin/options-permalink.php). There in “common settings” select option other than default, you can select “post name” and then click save button.

    #3894
    ibergag
    Pro
    Post count: 34

    Hi,

    No i m not talking about this. this is already done all my link are permanent already but i would like also redirect all normal From http://exemple.com/?entry=150 to http://exemple.com/poste-title-link/

    Thanks.

    #3896
    Suman M.
    Post count: 12480

    So you want the links like http://exemple.com/?entry=150 to be redirected to http://exemple.com/poste-title-link/?? But from where this link “http://exemple.com/?entry=150” come from? HMWP doesn’t have URL redirection feature. You might need to use other redirect plugin or else add rewrite rules in htaccess manually.

    #3903
    ibergag
    Pro
    Post count: 34

    this is exactly what i wanna do.

    can u help me about the redirect rules in the htaccess or give me a clue where or what should i search on the web.

    i want avoid plugins.

    Thanks

    #3908
    Suman M.
    Post count: 12480

    You can add the lines like below in htaccess file just before line “RewriteCond %{REQUEST_FILENAME} !-f”

    RewriteRule ^\?entry=150 /poste-title-link/ [L,R=301]
    RewriteRule ^\?entry=151 /poste-title-link-2/ [L,R=301]

    Note: I’ve not tested this. You can search in google for “wordpress htaccess redirect url”

    #3927
    ibergag
    Pro
    Post count: 34

    hello,

    so if i undesratnd well i have to do this for each post ?

    because i have more then 7000 posts.

    Thanks

    #3937
    Suman M.
    Post count: 12480

    If you want all old posts (entry=150; entry=151; etc) to redirect to single new URL (/post-title-link) then only one rule will be enough (you’ll have to use wildcard for entry IDs).
    If each old post redirects to different new URL then you’ll have to add rule for every post.

    #3943
    ibergag
    Pro
    Post count: 34

    well i think i m in the second case, each post must redirect to it s permalink url

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.