Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Lordest Posted December 28, 2022 Posted December 28, 2022 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?
Randy Calvert Posted December 29, 2022 Posted December 29, 2022 (edited) 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, 2022 by Randy Calvert
Lordest Posted December 29, 2022 Author Posted December 29, 2022 Hi. htaccess looks fine, it only has https redirection in it. Is there anything I should do as an example? @Randy Calvert
Stuart Silvester Posted December 29, 2022 Posted December 29, 2022 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. Jim M 1
Marc Posted January 3, 2023 Posted January 3, 2023 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/
Lordest Posted January 5, 2023 Author Posted January 5, 2023 Since I am running it on Cloudflare, there is already HTTPS regulation. Thanks for the warning, it's working fine now.
Marc Posted January 6, 2023 Posted January 6, 2023 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
Lordest Posted January 6, 2023 Author Posted January 6, 2023 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?
Jim M Posted January 6, 2023 Posted January 6, 2023 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.
Recommended Posts