Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

.htaccess

https://www.000webhost.com

can I edit (or create ) .htaccess file on free account

is this something I can test  (and show you ) by running
https://www.000webhost.com
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

I don't see why not.

As long as you can write in a folder (using a FTP client or the file manager from Cpanel) you can create a file called .htaccess.

If the server will actually use that file, you'll have to test or ask support.

HTH,
Dan
Yes you can, 000webhost provideds guides to some common solutions
https://www.000webhost.com/forum/t/how-should-i-edit-htaccess/31178/6
can I edit (or create ) .htaccess file on free account
Yes you can

is this something I can test  (and show you ) by running
.htacces [sample 1 - simple redirect]
redirect /index2.html /index.html

Open in new window

Make sure you have a index.html and enter URL to index2.html - should be redirected to index.html

.htaccess[sample 2 - simple rewrite]
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index2.html$ index.php [L,NC,QSA]

Open in new window


Same as above except not a redirect but a rewrite so you should see index.html but the URL will still say index2.html
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rgb192

ASKER

this fixed a 500 error I was having.

server(wordpress)/folder/NotReal.php  kept me at same location
server(wordpress)/folder/NotReal.php
 maybe because wordpress located on root


please see related question