• Hi,

    After running my website for over a year with few problem the permalinks suddenly today stopped working? I was using the recommended ‘Post Name’ option.

    I tried to refresh by setting to ‘Plain’ back to ‘Post Name’ – this didn’t fix the problem. I have checked my .htaccess file – all seems well.

    I have deactivated all plugins and the problem still remained. I have cleared the cache numerous times – nothing.

    The site currently works with the plain setting, ie. ‘www.website.com/?p=123’ but not ‘www.website.com/post-name’

    The only way I can get it to work with post names is by placing ‘index.php’ before the link in the permalink settings – so custom structure – “/index.php/%postname%’ works but simply %postname% does not. Obviously this is not an good fix whatsoever.

    I cannot for the life of me understand why this is now not working as I am on a shared hosting server and have other websites on wordpress working absolutely fine.

    I am confused why the permalinks work if I put index.php before them??

    Any help much appreciated!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Moderator t-p

    (@t-p)

    The site currently works with the plain setting

    If that works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Just happened to one of my sites as well. I can use plain and custom with /index.php/%postname% but without the /index.php the page gives a 404 error.

    Running 4.8 so I’m not sure if that’s the issue.

    I’ve reset permissions, checked the .htaccess and verified it’s default, verified it wasn’t the php version, reinstalled WordPress 4.8 and the issue still remains.

    Moderator t-p

    (@t-p)

    – If default setting works but not the pretty permalinks, make sure mod_rewrite is enabled on your server, and also has AllowOverride All on that directory in your web server’s config.

    The server has mod_rewrite enabled. I have 400 other domains on the same server and nobody else is having an issue. I’m not sure who has 4.8 installed but this site just started having issues today.

    Also no theme files or plugins have been updated. Only wordpress 4.8.

    Thread Starter charlton_68

    (@charlton_68)

    So according to that article my site is able to run PATHINFO permalinks but not full pretty permalinks?

    I don’t understand why this is the case though?

    mod_rewrite is installed on my server – as my other domains work?

    Also running wordpress 4.8!

    Moderator t-p

    (@t-p)

    Since the default setting works, but NOT the custom permalinks, I suspect your .htaccess is probably messed up. I will double check it.

    Moderator t-p

    (@t-p)

    Also, please give us your site’s URL where we can see the permalinks from this end.

    • This reply was modified 7 years, 8 months ago by t-p.
    Moderator t-p

    (@t-p)

    Also, try re-saving your permalink structure at Admin panel>>>Settings>>>Permalinks. Sometimes, that works if it is a simple db issue. WordPress will either create/rebuild the .htaccess file. If WordPress cannot automatically edit the .htaccess file( if it is not writable), then WordPress will provide manual instructions after saving the correct block of code so that you can manually add it to your .htaccess file. More Info: https://codex.www.ads-software.com/Using_Permalinks

    Thread Starter charlton_68

    (@charlton_68)

    Hi, site is https://www.bleepplc.co.uk

    .htaccess file has been stripped right back down and i have tried numerous times using the following:

    # 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

    Without any joy, the .htaccess file is currently a lot bigger than this due to the W3 Total Cache plugin – this has also been deactivated numerous times aswell.

    I have tried to “reset’ my permalinks about 20 times via the Admin panel>>>Settings>>>Permalinks method – again no avail.

    I seem to have spent hours trawling through internet forums, looking for suggestions and everything I try doesn’t work – it’s deinitely not a hosting issue as my other domains on the same host all work?

    It must be something though!

    Moderator t-p

    (@t-p)

    looks like your permalinks are working now, at least from my end.

    For example, I just visited this article: https://www.bleepplc.co.uk/index.php/game-set-match-at-wimbledon-2017/

    In case of any cache issue, try:
    Flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. If you are using SiteLock, manage your caching there.
    Flushing Managed host caches. Managed WP hosting often has special caches. If your host has a “Purge Varnish” or “Flush Memcache” tool, try that. You can ask your provider to flush memcache and Varnish for you if necessary.

    Thread Starter charlton_68

    (@charlton_68)

    Hi,

    Thanks for your reply.

    Full pretty permalinks are still not working, as you can see the link you provided still has ‘index.php’ in between the rest of the post name – as explained in my previous post this was the only way I could get it work other than to use the ‘plain’ setting ie. “www.site.com?p=123”

    I have flushed the caching plugin I am using and I have even deactivated it, I have removed from the cloudfare CDN and flushed that too. I have cleared everything from browser settings.

    I deactivated every plugin, cleared browser cache, removed from CDN and still they will not work. I am stumped and am out of ideas completely.

    They were working absolutely fine the other day?

    Joe

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Permalinks Suddenly not working??’ is closed to new replies.