Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 28, 20222 yr Hello. I took a full backup and restored the files. Homepage and Admin panel work fine, but the links in the forum show 404 not found. How can I fix?
December 29, 20222 yr You might need to check your .htaccess file which handles all of the SEO friendly URLs was restored properly. It’s not uncommon for restores to miss hidden files such as htaccess which could cause this this problem. Edited December 29, 20222 yr by Randy Calvert
December 29, 20222 yr Author Hi. htaccess looks fine, it only has https redirection in it. Is there anything I should do as an example? @Randy Calvert
December 29, 20222 yr Community Expert 1 hour ago, Lordest said: Hi. htaccess looks fine, it only has https redirection in it. Is there anything I should do as an example? @Randy Calvert It should also have rewrites in it to allow the friendly URLs to function. To get the right rules, go to AdminCP > System > Site Promotion > Search Engine Optimization. Click the download link in the description for the 'Rewrite URLs?' option.
January 3, 20232 yr Community Expert Also its worth noting, if you are redirecting to https, you should also have your site set up as https in your sites configuration. Please see the following file if you havent done this already https://invisioncommunity.com/4guides/advanced-options/configuration-options/using-ssl-https-r273/
January 5, 20232 yr Author Since I am running it on Cloudflare, there is already HTTPS regulation. Thanks for the warning, it's working fine now.
January 6, 20232 yr Community Expert While I understand your web server may be forcing https, if you dont set the softwares configuration to use https also as mentioned above, it will break things
January 6, 20232 yr Author 12 hours ago, Marc Stridgen said: While I understand your web server may be forcing https, if you dont set the softwares configuration to use https also as mentioned above, it will break things My conf.global.php file is slightly different from the example you posted. <?php $INFO = array ( It starts as . There is a url somewhere. It starts as 'base_url' => https://. I guess it's not true?
January 6, 20232 yr Community Expert 3 minutes ago, Lordest said: My conf.global.php file is slightly different from the example you posted. <?php $INFO = array ( It starts as . There is a url somewhere. It starts as 'base_url' => https://. I guess it's not true? You would want to find the corresponding URL of your community there and change it from http to https. That is the basic gist there. Depending on when your software was installed, you may have a slightly different conf_global.php setup.