15-01-2019, 12:15 PMDjonix Wrote: So my forum just stopped working. Any link I click, it brings me to the home page. I can't see subforums, threads, user profiles, etc. Only admin panel is working.
I found out that I can turn off Friendly URLsand everything would be fine. But I don't have friendly URLs now. What can I do to bring them back and have them working?
Are you want to remove "index.php?" on your forums?
1. Admin CP > System > Search Engine Optimization > click all like this
Then add this on .htaccess
Code:
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
If you using a path like yoursite.com/forum, just add this on .htaccess
Code:
<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>
Save, and see the magic happen (: