- redirecting a domain without access WWW to WWW
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domainanda.com [nc]
rewriterule ^(.*)$ http://www.domainanda.com/$1 [r=301,nc]
- prevent others to see .htaccess and the other files
order allow,deny
deny from all
if you want to prevent for access other file change .htacces name with other name.
- changing error message
syntax error example :
ErrorDocument 500 /error.html
change error.html with your own error page.
and many other you can do with .htaccess
Tidak ada komentar:
Posting Komentar