Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

htaccess doesn't work.

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
evilnab
Posts: 3
Joined: Wed Jun 18, 2014 4:57 pm

htaccess doesn't work.
  • Quote

Post by evilnab » Wed Jun 18, 2014 5:07 pm

Hello,
htaccess seems not to be working , i've tried using htaccess to display error pages and it didnt work , tried to use

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
and it didn't work either.

the .htaccess is located in /web/mydomain.com/public_html
Any idea what is wrong or any solution to fix that ?
Top

evilnab
Posts: 3
Joined: Wed Jun 18, 2014 4:57 pm

Re: htaccess doesn't work.
  • Quote

Post by evilnab » Wed Jun 18, 2014 5:16 pm

No idea how but htaccess file started working after i renamed it from .htaccess to htaccess and than back to .htaccess

You may close the topic. ;)
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: htaccess doesn't work.
  • Quote

Post by imperio » Tue Jun 24, 2014 6:35 pm

No idea how but htaccess file started working after i renamed it from .htaccess to htaccess and than back to .htaccess
:-))
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password