Title: Custom Permalink Error
Last modified: August 21, 2016

---

# Custom Permalink Error

 *  Resolved [timmer81](https://wordpress.org/support/users/timmer81/)
 * (@timmer81)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-permalink-error-1/)
 * I have installed WP into sub-domain site.co.uk/shop
 * I installed .htaccess file with the following code
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule> # END WordPress
 * Problem is when I use custom structure /%postname%/ (**ie.** site.com/shop/sample-
   post ) it leads to _page cannot be found error 404_
 * But when i use the site.com/shop/index.php/sample-post it works.
 * Can’t seem to work the problem out so all help and advice will be much appreciated.

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-permalink-error-1/#post-3872563)
 * Change the _RewriteBase_ and check if there is a .htaccess file in root with 
   WP rewrite rules..
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /shop/
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 *  Thread Starter [timmer81](https://wordpress.org/support/users/timmer81/)
 * (@timmer81)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/custom-permalink-error-1/#post-3872618)
 * Hi
 * Thank you for your reply. I tried the above but sadly did not work. I tied this
   in wwwroot and also in sub domain but sadly no joy.

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

The topic ‘Custom Permalink Error’ 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/)
 * 2 replies
 * 2 participants
 * Last reply from: [timmer81](https://wordpress.org/support/users/timmer81/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/custom-permalink-error-1/#post-3872618)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
