{"id":960391,"date":"2009-01-16T02:37:42","date_gmt":"2009-01-16T02:37:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/localhost-permalink-question\/"},"modified":"2016-08-19T03:15:15","modified_gmt":"2016-08-19T03:15:15","slug":"localhost-permalink-question","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/localhost-permalink-question\/","title":{"rendered":"LocalHost: Permalink question"},"content":{"rendered":"<p>I&#8217;m learning to tinker with wordpress on my localserver.<\/p>\n<p>As I go through the process of changing the kind of permalinks I want, I set it to just the post title with the \/%postname%\/.<\/p>\n<p>When this happens, none of my posts are accessible.  They call come up 404.  And this happens an all of the permalink options in the control pannel EXCEPT the default.<\/p>\n<p>Does anyone have any tips?  As for now as I build this thing from scratch (based on a tutorial by killersites.com) my code as it relates to the permalink stuff and created a customized 404 notice that runs on the php server looks like this:<\/p>\n<p>&lt;?php if ( have_posts() ) : ?&gt;<\/p>\n<p>          &lt;?php while (have_posts()) : the_post(); ?&gt;<br \/>\n            &lt;div class=&#8221;post&#8221;&gt;<br \/>\n              &lt;h1&gt;<br \/>\n                <a>&#8220;&gt;<br \/>\n                  &lt;?php the_title(); ?&gt;<br \/>\n                <\/a><br \/>\n              &lt;\/h1&gt;<br \/>\n              &lt;h2&gt;&lt;?php the_author(); ?&gt;&lt;\/h2&gt;<br \/>\n                &lt;p&gt;<br \/>\n                   &lt;?php the_content(&#8216;Read More&#8230;&#8217;); ?&gt;<br \/>\n                &lt;\/p&gt;<br \/>\n            &lt;\/div&gt;<br \/>\n          &lt;?php endwhile;?&gt;<\/p>\n<p>       &lt;?php<br \/>\n         else:<br \/>\n       ?&gt;<br \/>\n       &lt;h2&gt;Not Found&lt;\/h2&gt;<br \/>\n       &lt;p&gt;<br \/>\n       Sorry!  I can&#8217;t find what you&#8217;re looking for<br \/>\n       &lt;\/p&gt;  <\/p>\n<p>       &lt;?php<br \/>\n          endif;<br \/>\n       ?&gt;<br \/>\n      &lt;\/div&gt;<br \/>\n    &lt;\/div&gt;<\/p>\n<p>Is the code wrong some how?  <\/p>\n<p>To quick summarize the issue:<\/p>\n<p>Can&#8217;t change the style of permalink (when I do it comes up 404 when I click on the post). So a post titled New Post should come up *localhost\/trainermade\/new-post* but it comes up a plain 404.<\/p>\n<p>Can&#8217;t set the 404 error for a missing link such as (localhost\/trainermade\/asdlkjasl;dkjas;fdkj)<\/p>\n","protected":false},"template":"","class_list":["post-960391","topic","type-topic","status-closed","hentry","topic-tag-mod_rewrite","topic-tag-permalink"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/960391","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/960391\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=960391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}