Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
kkoutalis Posted April 10, 2016 Posted April 10, 2016 Hi all, I've been trying to enable the URL rewrite in my 4.1.10 IPS in order to have a smartphone app developed via REST-API. I'm downloading the .htaccess file from my adminCP and place it in the root folder of the forum (/var/www/<mydomain.ext>/vwforum/). Once I enable the option in the forum, I get a notification that Quote The rewriting does not seem to be working. This may be because you have not uploaded the .htaccess file, but may be a false error if your community is not generally accessible. Check friendly URLs are working, and if they are not, ensure you have uploaded the .htaccess file correctly or contact technical support for assistance. I've made sure that the rewrite module is already enabled: # a2enmod rewrite Module rewrite already enabled And I seem to be stuck in a dead end. Here's the contents of my .htaccess file: <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /vwforum/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /vwforum/404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /vwforum/index.php [L] </IfModule> Any help/hints/ideas will be very much appreciated. Cheers! Kostas K.
kkoutalis Posted April 12, 2016 Author Posted April 12, 2016 Hi @Hulu, yes the file is renamed: $ ls -lha .htaccess -rw-r--r-- 1 www-data www-data 325 Apr 10 17:13 .htaccess $ more .htaccess <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase /vwforum/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /vwforum/404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /vwforum/index.php [L] </IfModule> $ pwd /var/www/www.<mydomain.ext>/vwforum
EmpireKicking Posted April 12, 2016 Posted April 12, 2016 does it work without you modifying the .htaccess? if so then your input code is wrong. none of the above, then I have no idea.
kkoutalis Posted April 12, 2016 Author Posted April 12, 2016 the .htaccess isn't modified at all :-) It's how I downloaded it from the Admin CP.
EmpireKicking Posted April 12, 2016 Posted April 12, 2016 11 minutes ago, kkoutalis said: the .htaccess isn't modified at all :-) It's how I downloaded it from the Admin CP. Definitely submit a ticket to the support team then! Have you uploaded it in the right location? Double check that. upload it to your site's directory and rename it to '.htaccess' (with no file name). If there is already a .htaccess file, add the contents of this one to the existing. If you are not sure how to do this, contact technical support
kkoutalis Posted April 12, 2016 Author Posted April 12, 2016 Yup, it's in the right directory. I'll open up a ticket with IPB and see what they come back with. Thanks all!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.