I have a website with roughly 1K URLs. The website is moving to a different domain name. The URLs will be the exact sam…
How can I allow robot.txt in my .htaccess file RewriteEngine on RewriteCond %{REQUEST_URI} !=/server-status RewriteRule…
What is SSL? SSL (Secure Sockets Layer) is a standard security protocol for establishing encrypted links between a web …
Quick .htaccess snippet to disable browser caching by modifying Cache-Control, Pragma, and Expires headers. Strictly …
You can use the following : #remove the .php extention for root dir only RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(…
When a web browser is pointed to a directory on your web site which does not have an index.html file (or any other in…
Htaccess (HyperText Access) is a simple configuration file that allows designers, developers and programmers alike to…
RewriteEngine On RewriteRule ^(.*)\.html$ $1.php [L] If you want it to be done as a redirect instead of just a rewr…
Try something like this. Follow the comment thread for security implications, but this is what you're asking to do…
PHP