Strange Permalinks behaviour
-
Hi WordPress peeps. I’ve got a strange issue with my Permalinks not working. Here’s a quick overview and below that is a more detailed write up.
***QUICKIE***
Had to move a wordpress site to a new folder on the same server at the same level.When permalinks are set to anything other than ‘Default’ only the homepage loads, no matter what link I click on.
If I click on another menu item to say https://myurl/pagename all it does is reload the index page (no error messages or 404 page or error messages within wordpress when changing the permalinks), but https://myurl/?page_id=123 will work fine!
The htaccess file is working as expected (see below).
***DETAILED***
I was developing a site on a live server and it was installed inside another wordpress installation (which has been fine throughout the process).During the testing permalinks worked fine and the client gave the ok for it to go live.
This meant renaming the folder so I went in to settings and updated both the WordPress Address (URL) and Site Address (URL) to the new folder name (the new folder was empty at this point).
This brings me to the part I think I did wrong, I already had a front-end page open in another tab and was double checking some content so did a refresh meaning I was viewing the site in the old folder but with both the URLs updated to the new folder name!
I realised what I did and why it wasn’t working so copied all the core files over to the new folder then did a retest by loggin in under the new folder name. That worked fine.
Once in the new folder dashboard I updated all the database URLs then changed the permalinks a couple of times to make sure the htaccess file was working (it was).
I noticed that the site would only work if permalinks were set to default. I checked that wordpress was writing to my .htaccess file by deleting all the info in it then changing the permalinks, wordpress wrote:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /acornblue/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /acornblue/index.php [L]
</IfModule># END WordPress
There are no error messages in the browser or on the screen (not getting taken through to my 404 page).
There’s nothing in the server error logs.
Essentially every link just reloads the index page when permalinks are turned on.
This is driving me nuts, I’ve looked for solutions but everything I’ve tried has failed to make a difference and I’m now at a complete loss (I’m more a graphic designer than a programmer but have a good logical mind and tend to fix most issues I have with wordpress). Hoping someone here has had this issue before!
- The topic ‘Strange Permalinks behaviour’ is closed to new replies.