Title: LocalHost: Permalink question
Last modified: August 19, 2016

---

# LocalHost: Permalink question

 *  Resolved [trainermade](https://wordpress.org/support/users/trainermade/)
 * (@trainermade)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/)
 * I’m learning to tinker with wordpress on my localserver.
 * 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%/.
 * 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.
 * 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:
 * <?php if ( have_posts() ) : ?>
 *  <?php while (have_posts()) : the_post(); ?>
    <div class=”post”> <h1> “> <?php
   the_title(); ?>  </h1> <h2><?php the_author(); ?></h2> <p> <?php the_content(‘
   Read More…’); ?> </p> </div> <?php endwhile;?>
 *  <?php
    else: ?> <h2>Not Found</h2> <p> Sorry! I can’t find what you’re looking
   for </p>
 *  <?php
    endif; ?> </div> </div>
 * Is the code wrong some how?
 * To quick summarize the issue:
 * Can’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.
 * Can’t set the 404 error for a missing link such as (localhost/trainermade/asdlkjasl;
   dkjas;fdkj)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960606)
 * Can at least point you to [Permalinks](http://codex.wordpress.org/Permalinks).
 *  Anonymous User 96400
 * (@anonymized-96400)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960608)
 * have you activated mod_rewrite on your local server? if you don’t know, check
   your apache\conf\httpd.conf file for that line `# LoadModule rewrite_module modules/
   mod_rewrite.so`
 * if it’s got the # in front remove it and then stop apache and then start it again.
   permalinks should work then.
 *  Thread Starter [trainermade](https://wordpress.org/support/users/trainermade/)
 * (@trainermade)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960618)
 * TRAVEL-JUNKIE!!!! YOU ROCK! That was the easiest fix I’ve ever had someone tell
   me. THANK YOU!
 * -Andrew
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960619)
 * Good explanation travel-junkie.
 * Added this to:
    [http://codex.wordpress.org/FAQ_Troubleshooting#How_to_fix_404_error_when_using_Pretty_Permalinks.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_to_fix_404_error_when_using_Pretty_Permalinks.3F)
 *  Anonymous User 96400
 * (@anonymized-96400)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960622)
 * glad i could help 🙂
 *  [guvnrdotcom](https://wordpress.org/support/users/guvnrdotcom/)
 * (@guvnrdotcom)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960795)
 * for those of you with Apache2 running on Ubuntu (Jaunty at least), who’ve installed
   a LAMP server via tasksel, use this instead ..
 * LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
 * .. cos the dir changed 😛
 *  [slennzer](https://wordpress.org/support/users/slennzer/)
 * (@slennzer)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960799)
 * Travel-junkie, thank you so much! I was having the same problem on my local-host.
   Can’t believe it was something this simple.
    I would have been going in circles
   if it wasn’t for Travel-junkie & trainermade (who asked the question). =D

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘LocalHost: Permalink question’ is closed to new replies.

## Tags

 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 5 participants
 * Last reply from: [slennzer](https://wordpress.org/support/users/slennzer/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/localhost-permalink-question/#post-960799)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
