Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 27, 20231 yr Hi, i just installed a fresh installation of Invision Community v4.7.13 on a self hosted server. Installation went smooth and everything. Then I wanted to activate the Friendly URLs. So I downloaded the auto-generated file and uploaded it to my forum root, renaming it to .htaccess This is where my problem starts. The forum software won't find/accept the .htaccess file What can I do to make it work?
September 27, 20231 yr Author Yes, I'm running Apache 2.4.52 and PHP 8.2.10 on Ubuntu 22.04 Edited September 27, 20231 yr by Thomas Taschler
September 27, 20231 yr Author I set the file permissions to 0644, but still the same error. Filezilla: Edited September 27, 20231 yr by Thomas Taschler
September 27, 20231 yr Are you sure the file you uploaded has content? Open this file with notepad++ and check contents.
September 27, 20231 yr Author Yes, this is the content of the file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> This is the file the "download this file"-link in the first post provides. The necessary mods should also be ok Edited September 27, 20231 yr by Thomas Taschler Also checked mods
September 27, 20231 yr I assume that after uploading a htaccess file, you then saved a change here. Maybe you should start Support section in ACP and check if there is no error registered there. Also, check in your server PHP modules management - this is for my server Edited September 27, 20231 yr by Adlago
September 27, 20231 yr Author Do you mean this page? Seems fine. I did not modify the content of the .htaccess file. The code I posted earlier was obtained via Filezilla / View File. Those are my installed php modules: [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif FFI fileinfo filter ftp gd gettext gmp hash iconv intl json ldap libxml mbstring mcrypt mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_pgsql pgsql Phar posix random readline Reflection session shmop SimpleXML soap sockets sodium SPL standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache Edited September 27, 20231 yr by Thomas Taschler Installed PHP modules
September 27, 20231 yr I did not modify the content of the .htaccess file. The code I posted earlier was obtained via Filezilla / View File. Try this file, and rename it htacces.txt
September 27, 20231 yr Author Try this file, and rename it htacces.txt 297 B · 0 downloads Tried this file, still the same error.
September 27, 20231 yr Author Is mod_rewrite installed on Apache? Yes, this is my phpinfo() output: Edited September 27, 20231 yr by Thomas Taschler
September 27, 20231 yr Community Expert Yes, this is my phpinfo() output: You would need to contact your hosting provider then if you're having issues with this. By all intense of purposes, you should be able to run it.
September 27, 20231 yr Author I solved the problem! It was an Apache2 configuration error... I am sorry for wasting your time... Solution: Add at the end of /etc/apache2/apache2.conf the following code: <Directory "/path/to/your/site"> AllowOverride All </Directory> Then restart Apache and it should work.