• Resolved timmer81

    (@timmer81)


    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)
  • 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

    (@timmer81)

    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.