Author Topic: htaccess not work  (Read 10124 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
htaccess not work
« on: April 20, 2017, 06:27:38 PM »
hi
i use this htaccess 
Code: [Select]

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?page=/$1

my link website is this but at cwp not work

Code: [Select]
domain.com/post&id=50

Offline
*
Re: htaccess not work
« Reply #1 on: May 29, 2017, 07:06:41 AM »
I also get same problem..

I have a fresh installed cwp 9.8.240.

Then I install and configure CSF firewall..

Then i try to open my website, i've got 500 internal server error.

I pretty sure this happen because htaccess not working, because i got error when install wordpress. it says mod_rewrite doesn't work.

How to fix this? why a fresh installed CWP will get this error?

Thanks

Offline
*
Re: htaccess not work
« Reply #2 on: December 05, 2019, 10:59:35 AM »
Same problem with me.
I have also edited this file and turned on

<Directory "/home/<user_name>/public_html">
   Options -Indexes -FollowSymLinks +SymLinksIfOwnerMatch
   AllowOverride All
</Directory>

In the below mentioned file path
/usr/local/apache/conf.d/vhosts/<domain_name>.ga.conf

But still .htaccess file is not working

Offline
*
Re: htaccess not work
« Reply #3 on: December 22, 2019, 08:24:58 PM »
Hey, you guys did u solve the problem?
I got a subdomain on my uncle's web site but all I got is this error. Any help?