Title: permalink problem
Last modified: August 19, 2016

---

# permalink problem

 *  Resolved [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/)
 * Hi
 * Started a new blog on WP 3.1.
 * I am having a problem with permalinks. I have set a custom /%postname%/ in permalink
   settings, my WP could not write to the .htaccess file so I copy.pasted the code
   produced
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.
   php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /blog/index.php [L] </IfModule>
 * I can open my blog home page but get a 404 error when clicking to read the post.
   The address bar reads [http://wwww.mydomain/blog/blogtitle/](http://wwww.mydomain/blog/blogtitle/)
 * From the dashboard when editing the post under the title I have a permalink displayed
   Permalink: [http://mydomain/blog/blog](http://mydomain/blog/blog) title/ but 
   i the address bar is [http://mydomain/blog/wp-admin/post.php?post=35&action=edit](http://mydomain/blog/wp-admin/post.php?post=35&action=edit)
 * When I click view post in the edit section I get a new screen with a not found
   error with this in the address bar
    [http://www.mydomain/blog/blogtitle/](http://www.mydomain/blog/blogtitle/)
 * I have checked my .htaccess file in the wp-admin folder and it has the code written
   to it, I don’t know if its relevent but the default file setting is 755, the 
   default setting on the wp-admin folder has no number just 3 x’s (xxx) the default
   setting for my blog folder is 755.
 * I do have Yoast SEO plugin.
 * Apologies if I have over done the info, just really stuck and want to help you
   help me.
 * Many thanks

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/permalink-problem-36/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/permalink-problem-36/page/2/?output_format=md)

 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950643)
 * Can anyone help ?
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950645)
 * Have you turned off the Yoast SEO plugin and verified that it still is not working
   when all plugins are deactivated?
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950646)
 * > I can open my blog home page but get a 404 error when clicking to read the 
   > post. The address bar reads [http://wwww.mydomain/blog/blogtitle/](http://wwww.mydomain/blog/blogtitle/)
 * Is this supposed to be: [http://www.mydomain/blog/blogtitle/](http://www.mydomain/blog/blogtitle/)?
 * When you view [http://www.mydomain/blog/?p=35](http://www.mydomain/blog/?p=35)
   can you view the post?
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950649)
 * Hi
 * Thank you for responding
 * I have turned Yoast SEO off and deactivated all plugins with no effect to the
   problem.
 * yes, sorry for the typo it is www.
 * When I view [http://www.mydomain/blog/?p=35](http://www.mydomain/blog/?p=35) 
   I cannot see the post.
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950652)
 * Can you give us your blog URL?
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950654)
 * its very basic as its only just been started
 * [http://www.hpcastles.co.uk/blog](http://www.hpcastles.co.uk/blog)
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950657)
 * Check [http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list](http://wordpress.org/support/topic/troubleshooting-wordpress-31-master-list)
   for tips and tricks with 404s. Some servers have issues with canonical redirects.
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950658)
 * This looks like your .htaccess file isn’t working at all. Have you created your.
   htaccess file and placed it within your /blog directory?
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /blog/
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /blog/index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 * The permissions should be 666 for this file.
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950659)
 * Reset your permissions for that file to be 666 and then delete your custom permalinks
   from the page in the Admin area and save it. Then reapply your custom permalinks.
   Hopefully that should write correctly to your .htaccess file.
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950661)
 * changed file permission to 666 ad followed your tips. When re entering custom
   permalinks it still could not write to .htaccess file so I tried to copy/paste
   the code in manually, tried blog again the problem still remains
 *  [jchiappisi](https://wordpress.org/support/users/jchiappisi/)
 * (@jchiappisi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950666)
 * Try removing your permalinks and seeing if you can access the [http://www.mydomain/blog/?p=35](http://www.mydomain/blog/?p=35)
   again.
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950669)
 * Page is accessible when permalinks are returned to default setting
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950675)
 * tried a few file permission changes with no success, put them all back and ended
   up with 500 internal server error, only way to get dashboard back was to delete
   htaccess file from wp-admin folder. Dashboard is now back, now cannot insert .
   htaccess file to wp-admin without causing 500 error and loosing dashboard.
 *  Thread Starter [huffnpuff](https://wordpress.org/support/users/huffnpuff/)
 * (@huffnpuff)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950678)
 * sorry to keep reposting, updating information.
 * I have now managed to get a .htaccess file into wp-admin folder, got my dashboard
   back, 500 errors still happening on viewing comment pages, permalinks still cannot
   write to ht access file.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/#post-1950680)
 * Why are you adding an .htaccess file to your wp-admin folder?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/permalink-problem-36/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/permalink-problem-36/page/2/?output_format=md)

The topic ‘permalink problem’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 19 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/permalink-problem-36/page/2/#post-1950686)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
