Pretty Links

by 4 replies
5
How can I make links similar to pretty links in wordpress on a site that is just running my own code?

i.e. www.mysite.com/name-of-article

Thanks.
#programming #links #pretty
  • From the Dashboard go to Settings and then Permalinks, select "Custom Structure" and put /%postname%/
    Good luck!
  • You are running a non-Wordpress site, right? If so, is the site all static pages? I have some software that will redirect whatever you want to call your link to any page you want. PM me if you like.

    Ron
  • These are very simple if you are aware of .htaccess files.
    in the htaccess file, you just need to write the code to redirect the link www.mysite.com/name-of-article to www.mysite.com/name-of-article.html

    example,

    --------------------------------
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]+)/ http://www.mysite.com/$1.html [NC,L]
    ------------------------------

    the above code if you place in .htaccess file, would redirect all your www.mysite.com/any-name-of-article to www.mysite.com/any-name-of-article.html

    but this is very technical stuff, better some expert handle this, else modifying htaccess can even screw up all website link handling/redirection.
  • I can manage. Thanks for your help.
  • Banned
    [DELETED]

Next Topics on Trending Feed

  • 5

    How can I make links similar to pretty links in wordpress on a site that is just running my own code? i.e. www.mysite.com/name-of-article