Jump to content

Problem with URL rewrite (.htaccess)


kkoutalis

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...