Maria Tsamadou Posted April 14, 2022 Share Posted April 14, 2022 Hello, After setup in Plesk all pages except the home page redirects to 404. Any help please? Link to comment Share on other sites More sharing options...
Marc Posted April 14, 2022 Share Posted April 14, 2022 You need to check the htaccess you have in place, and ensure thet rewrites are switched on Link to comment Share on other sites More sharing options...
Maria Tsamadou Posted April 14, 2022 Author Share Posted April 14, 2022 There was no .htaccess file. I created one and put this inside. <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /forum/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(jpeg|jpg|gif|png)$ /forum/public/404.php [NC,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> That seems to solve the problem. But I don't know if it is ok. Link to comment Share on other sites More sharing options...
Solution Marc Posted April 14, 2022 Solution Share Posted April 14, 2022 You need to download one from the System>Search Engine Optimisation section of your admin CP. According to where your URL is on file, that htaccess would not be correct. Maria Tsamadou 1 Link to comment Share on other sites More sharing options...
Maria Tsamadou Posted April 14, 2022 Author Share Posted April 14, 2022 Perfect, I did it. Thanks for the help. Link to comment Share on other sites More sharing options...
Marc Posted April 14, 2022 Share Posted April 14, 2022 No problem at all. Glad you have what you need there Link to comment Share on other sites More sharing options...
Recommended Posts