Tim F
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: URL redirects to doubled versionThanks – the responses I got from websniffer were:
https://mysite.com/mysite.com/index.php = 301
https://mysite.com/mysite.com/ = 404
https://mysite.com/index.php = 301
https://mysite.com/mysite.com/wp-json/ = 404Forum: Fixing WordPress
In reply to: URL redirects to doubled versionMy host helped me identify the problem – embarrassingly it was browser cache. Posting this here so anyone else with this issue knows to clear browser cache as the first step. The great advice from @autotutorial may help if that doesn’t work.
Forum: Fixing WordPress
In reply to: URL redirects to doubled version@autotutorial Thanks again for the help. Adding the .htaccess to the mysite.com did not change anything.
However when I added
define(‘WP_SITEURL’, ‘https://mysite.com’);
define(‘WP_HOME’,’https://mysite.com/mysite.com’);To wp-config.php the URL is still doubled, eg visiting http://mysite.com still redirects to https://mysite.com/mysite.com but this link now works – there is no more page not found error and the site actually loads at the wrong url.
Forum: Fixing WordPress
In reply to: URL redirects to doubled version@autotutorial Thanks again – I have tried completely manually uninstalling really simple SSL with no difference so have now reinstalled it as my certificate is now live.
Yes the second WP installation (the problem one) is in public_html\mysite.com – only the http version of the url redirects to the wrong url. If I visit http://mysite.com, it redirects to https://mysite.com/mysite.com. If I visit https://mysite.com it loads correctly with no redirect.
Thanks for pointing me in this direction, I will contact my host unless you or anyone else has any ideas?
Forum: Fixing WordPress
In reply to: URL redirects to doubled version@autotutorial Thanks very much for the reply. Can I just clarify, which file does this go in:
$_SERVER['DOCUMENT_ROOT'] = '/www/home/user/public_html';My current setup is one wordpress installation for my primary domain in the root folder public_html (working fine) and one wordpress install for an addon domain, so the install is in public_html/mysite.com. This means there is index.php for install 1 in root and index.php for install 2 in root/mysite.com. Does that change your instructions for index.php?
Also I checked my .htaccess in root and all of those lines are present. Do I maybe need a separate .htaccess file for root/mysite.com?
Forum: Fixing WordPress
In reply to: Post URLs still pointing to old domain after moveThanks for the suggestions – I checked those with no luck but eventually realised my new addon domain was still pointing to the old domains folder so must have been picking up the wrong database from wp-options. I still don’t understand why any of the new content was loading at all in that case but it is all working after changing that!
Forum: Hacks
In reply to: Display a post from one of several cats with get_posts?Found it, you can’t use multiple cats in an array like I did. Has to be
get_posts('category=1, 2, 3')Forum: Plugins
In reply to: Help checking multiple categories with get_postsAny ideas?
Sorry, I realised I should probably have posted this in the hacks forum.Forum: Plugins
In reply to: Can I assign categories to a page?Awesome, thanks!
Forum: Plugins
In reply to: [Plugin: Google XML Sitemaps] Problem writing sitemap filehostgator hosting doesn’t allow users to set permissions to 777. I’ve resolved this issue by just using a different plugin but would love to hear any othre workarounds!