Title: Permalinks Problem
Last modified: August 19, 2016

---

# Permalinks Problem

 *  Resolved [mqb_aimee](https://wordpress.org/support/users/mqb_aimee/)
 * (@mqb_aimee)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/)
 * I am trying to use permalinks on my new blog. I changed it to a custom structure
   of /%postname%/.
 * When viewing my posts on the homepage, each post title on the blog still shows/
   index.php?p=#. When clicked, that URL shows in the address bar of the browser.**
   HOWEVER**, if a post title is accessed under the “Recent Posts” sidebar OR if
   a social bookmark is clicked on the post, the blog and address bar show /%postname%
   instead of /index.php?p=# as it does on the homepage itself. Both types of URLs
   work to get the same post.
 * Does this have to do with the index.php file? Is it a problem with the theme 
   I used? Any way to work around this so /index.php?p=# doesn’t show up when the
   main page is up?
 * ——-
    Background Info: – I did check [Using Permalinks](http://codex.wordpress.org/Using_Permalinks).–
   I CHMOD’d the .htaccess file to 666 and it does not have any frontpage server
   extensions (I’m currently not using Frontpage). – Adding /index.php before the
   permalinks does not solve this issue. – I do not want the post-ID… just the postname.–
   Browser Used: Firefox 3.0.10 – WP Version Used: 2.7.1 – URL: [http://www.myquickbuck.com/](http://www.myquickbuck.com/)——-

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

 *  [obvisu](https://wordpress.org/support/users/obvisu/)
 * (@obvisu)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/#post-1065564)
 * I’m not an expert on WordPress, but I would hazard a guess that it’s because 
   you’re accessing it from your homepage, index.html? Could it be something in 
   your theme file or homepage specific settings?
 * I haven’t experienced this problem before on my sites, so I wouldn’t know how
   to fix it. Sorry.
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/#post-1065572)
 * Its not supposed to work that way. Take a look at your index.php theme file and
   see how the display of the permalink is coded on the post titles. Its supposed
   to say
    `<a href="<?php the_permalink() ?>"`
 * If that’s not what you find ( `<a href="<?php the_permalink() ?>"` )
    try changing
   the code to that.
 * If that is what you see, the first thing I’d try is resetting the permalinks 
   to the default settings, and then change them back to /%postname%/ Sometimes 
   that resets some internal WP coding.
 *  Thread Starter [mqb_aimee](https://wordpress.org/support/users/mqb_aimee/)
 * (@mqb_aimee)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/#post-1065579)
 * Thank you both for your help!
 * I checked the Main Index Template (index.php) and saw that the coding said:
 * 
 * So I changed that to:
 * 
 * and it worked!! 🙂
 * Thanks again!
 *  Thread Starter [mqb_aimee](https://wordpress.org/support/users/mqb_aimee/)
 * (@mqb_aimee)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/#post-1065580)
 * Thank you both for your help!
 * I checked the Main Index Template (index.php) and saw that the coding said:
 * `<a href="index.php?p=<?php the_ID(); ?>"><?php the_title(); ?></a>`
 * So I changed that to:
 * `<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>`
 * and it worked!! 🙂
 * Thanks again!

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

The topic ‘Permalinks Problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [mqb_aimee](https://wordpress.org/support/users/mqb_aimee/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/permalinks-problem-16/#post-1065580)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
