rgb192
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
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
Yes you can, 000webhost provideds guides to some common solutions
https://www.000webhost.com/forum/t/how-should-i-edit-htaccess/31178/6
https://www.000webhost.com/forum/t/how-should-i-edit-htaccess/31178/6
can I edit (or create ) .htaccess file on free accountYes you can
is this something I can test (and show you ) by running.htacces [sample 1 - simple redirect]
redirect /index2.html /index.html
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]
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
this fixed a 500 error I was having.
server(wordpress)/folder/N otReal.php kept me at same location
server(wordpress)/folder/N otReal.php
maybe because wordpress located on root
please see related question
server(wordpress)/folder/N
server(wordpress)/folder/N
maybe because wordpress located on root
please see related question
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