• Resolved huffnpuff

    (@huffnpuff)


    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 https://wwww.mydomain/blog/blogtitle/

    From the dashboard when editing the post under the title I have a permalink displayed Permalink: https://mydomain/blog/blog title/ but i the address bar is https://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
    https://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)
  • Thread Starter huffnpuff

    (@huffnpuff)

    Can anyone help ?

    jchiappisi

    (@jchiappisi)

    Have you turned off the Yoast SEO plugin and verified that it still is not working when all plugins are deactivated?

    jchiappisi

    (@jchiappisi)

    I can open my blog home page but get a 404 error when clicking to read the post. The address bar reads https://wwww.mydomain/blog/blogtitle/

    Is this supposed to be: https://www.mydomain/blog/blogtitle/ ?

    When you view https://www.mydomain/blog/?p=35 can you view the post?

    Thread Starter huffnpuff

    (@huffnpuff)

    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 https://www.mydomain/blog/?p=35 I cannot see the post.

    jchiappisi

    (@jchiappisi)

    Can you give us your blog URL?

    Thread Starter huffnpuff

    (@huffnpuff)

    its very basic as its only just been started

    https://www.hpcastles.co.uk/blog

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Check https://www.ads-software.com/support/topic/troubleshooting-wordpress-31-master-list for tips and tricks with 404s. Some servers have issues with canonical redirects.

    jchiappisi

    (@jchiappisi)

    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

    (@jchiappisi)

    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

    (@huffnpuff)

    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

    (@jchiappisi)

    Try removing your permalinks and seeing if you can access the https://www.mydomain/blog/?p=35 again.

    Thread Starter huffnpuff

    (@huffnpuff)

    Page is accessible when permalinks are returned to default setting

    Thread Starter huffnpuff

    (@huffnpuff)

    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

    (@huffnpuff)

    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

    (@esmi)

    Why are you adding an .htaccess file to your wp-admin folder?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘permalink problem’ is closed to new replies.