Jump to content
  • 0

Mod Rewrite And Htaccess Error


konorbi

Question

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)
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0
On 8/9/2015 at 10: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.

 

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...