Advertisement

.htaccess file does not work

Nighterance
Nighterance

Hello! I wanted to say, that you have best free host out there!
I love it!.

And now, to the point. I used to store my website, just small html/css/js for school project, on 000webhost, where I uploaded this .htaccess file to rewrite .html endings from url.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301] 

When I do it here ( I created my own .htaccess not edited your premade ), it did not work, and it wasnt redirecting me to page, lets say domain.com/dogs, but to error page of infinityfree. Any advice?

Thanks,
Tom.

Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions

Advertisement

Advertisement

Copyright © InfinityFree 2017
Powered by Vanilla Forums