Wordpress Clean Urls Don't Work

3 posts / 0 new
Last post
#1 Fri, 06/02/2017 - 16:14
yaso9

Wordpress Clean Urls Don't Work

I am trying to use the following code in my .htaccess file:

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

It works on other servers that run apache.

However it doesn't work on my virtualmin server. I have checked for AllowOveride all and it is there. I have also tried to write my own php script and use mod rewrite to rewrite the root but it doesn't work. I have to go to domain.tld/index.php/enter_page_name_here instead of domain.tld/enter_page_name_here.

Thanks.

Fri, 06/02/2017 - 17:00
yaso9

Nevermind. After months worth of trouble shooting (I tried fixing it before posting on the forum) I realized mod_rewrite was disabled. I thought mod rewrite was working but in reality it never worked.

Fri, 06/02/2017 - 17:01
yaso9

Nevermind. After months worth of trouble shooting (I tried fixing it before posting on the forum) I realized mod_rewrite was disabled. I thought mod rewrite was working but in reality it never worked.

Topic locked