Jump to content
  • 0

Mod Rewrite And Htaccess Error


Question

Posted

Hello!

 

I wanted to install Blesta with the .htaccess file

 

On my server I use apache. Mod rewrite, and htaccess support is enabled, it is working on my other sites.

 

My files is located at /var/clientweb , chmod and chown is right.

 

.htaccess : 

<Files ~ "\.(pdt)$">
   order deny,allow
   deny from all
</Files>

# Protect against Clickjacking
#Header append X-Frame-Options "SAMEORIGIN"

RewriteEngine on

# Force HTTPS
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=307,NE,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php

RewriteCond %{REQUEST_URI} ^(.*)/install.php$
RewriteRule install.php %1/install/ [R=301,L]

Apache config (it is configured on a subdomain): 

<VirtualHost *:80>
 ServerAdmin info@mydomain.com
 ServerName client.mydomain.com
 DocumentRoot /var/clientweb
 <Directory />
  Options FollowSymLinks
  AllowOverride All
 </Directory>
 <Directory /var/clientweb/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
 </Directory>

 ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
 <Directory "/usr/lib/cgi-bin">
  AllowOverride None
  Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  Order allow,deny
  Allow from all
 </Directory>

 ErrorLog /var/log/apache2/clientweb_error.log

 # Possible values include: debug, info, notice, warn, error, crit,
 # alert, emerg.
 LogLevel warn

 CustomLog /var/log/apache2/clientweb_access.log combined
 php_value session.save_path /var/sessions
</VirtualHost>

Apache error log doesn't show anything. But when I point my browser to http://clientweb.mydomain.com/install/ it tells this error:

 

Error
Mod rewrite is not enabled, or htaccess is not supported by this server. You must disable pretty URL support in Blesta by removing the .htaccess file.
System: Debian 8 64-bit
PHP version: PHP 5.6.9-0+deb8u1
Apache version: Apache/2.4.10 (Debian)

6 answers to this question

Recommended Posts

  • 0
Posted

I fixed it in this way:

 

During installation I removed the .htaccess file, and after installation, I re-created it again, and deleted the cache/1 folder. 

 

Now it is working great with pretty urls.

  • 0
Posted

Would you like me to look into this for you as it's an apache issue or a cache issue. You can try it before me if you wish, inside /cache/ remove the 1 folder. If not please get teamviewer and pm your id and pass.

  • 0
Posted
  On 8/9/2015 at 5:32 PM, konorbi said:

I fixed it in this way:

 

During installation I removed the .htaccess file, and after installation, I re-created it again, and deleted the cache/1 folder. 

 

Now it is working great with pretty urls.

 

Expand  

Would you Htaccess Redirect Generator allow to investigate this for htaccess checker as it's either an apache or a caching problem? If you'd like to try it before me, eliminate the single directory inside it /cache/. If not, please download TeamViewer and PM your login information.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...