Snippets tagged “mod-rewrite”
4 snippets use this tag.
- Block direct access to a file over http but allow php script accessPHP
One way to block direct access to a file over HTTP but allow PHP script access is to use a .htaccess file in the same directory as the file.
- How do you enable mod_rewrite on any OS?PHP
To enable mod_rewrite on a PHP server, you will need to make sure that the Apache mod_rewrite module is installed and enabled.
- How to remove "index.php" in codeigniter's pathPHP
To remove "index.php" from the URL in CodeIgniter, you can use the .htaccess file.
- Htaccess: add/remove trailing slash from URLPHP
To add or remove a trailing slash from the end of a URL using an .htaccess file, you can use mod_rewrite to rewrite the URL.