Hi I am looking for server side scripting to hide all file names and url. This is to protect my web site, the scripts should display say www.domain.com instead of www.domain.com/index.html . Nothing should display after .com… (Budget: $30-250, Jobs: AJAX, Javascript, Linux, PHP, Script Installation)
No related posts.
I just found a way to do this by accident.
I have a website http://mokoinwhakatane.wordpress.com. It has been up for about a month but the web address is not ideal.
I bought http://www.mokoinwhakatane.co.nz with http://www.1stdomains.co.nz. I have set up http://www.mokoinwhakatane.co.nz to redirect to my wordpress site but to retain the .co.nz address in the address bar so that I can advertise the .co.nz address. I noticed that none of the pages on my wordpress site altered the address of http://www.mokoinwhakatane.co.nz at all. It didn’t matter which page I went to it still stayed the same.
Maybe this is what you are after … maybe not … but may be a quick cheap solution to your problem
Please use the following in your .htaccess file that will remove the php file
Options +FollowSymLinks
Options +Indexes
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^\.]+)$ $1.php [NC,L]
If you want to remove the .html file
RewriteRule ^([^\.]+)$ $1.html [NC,L]
Thanks