by mauii
4 replies
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.
#links #pretty
  • Profile picture of the author AlTheGr8
    From the Dashboard go to Settings and then Permalinks, select "Custom Structure" and put /%postname%/
    Good luck!
    {{ DiscussionBoard.errors[2668920].message }}
  • Profile picture of the author HONUware
    Originally Posted by mauii View Post

    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.
    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
    {{ DiscussionBoard.errors[2669092].message }}
  • Profile picture of the author SmartWeb
    Originally Posted by mauii View Post

    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.
    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.
    {{ DiscussionBoard.errors[2669291].message }}
  • Profile picture of the author mauii
    I can manage. Thanks for your help.
    {{ DiscussionBoard.errors[2669320].message }}

Trending Topics