Top ".htaccess" questions

Directory-level configuration file used by Apache web servers.

Https to http redirect using htaccess

I'm trying to redirect https://www.example.com to http://www.example.com. I tried the following code in the .…

apache .htaccess http https
Remove .php extension with .htaccess

Yes, I've read the Apache manual and searched here. For some reason I simply cannot get this to work. The …

.htaccess
Header set Access-Control-Allow-Origin in .htaccess doesn't work

I can't figure out why my .htaccess header settings doesn't work. My .htaccess file content: Header set Access-Control-Allow-Origin * Header always …

.htaccess mod-rewrite rewrite cors
Deny direct access to all .php files except index.php

I want to deny direct access to all .php files except one: index.php The only access to the other .…

php .htaccess
Server unable to read htaccess file, denying access to be safe

I have created a simple app using AngularJS. When I tried to host that project in my website http://demo.…

.htaccess
Deny access to one specific folder in .htaccess

I'm trying to deny users from accessing the site/includes folder by manipulating the URL. I don't know if I …

apache .htaccess
.htaccess mod_rewrite - how to exclude directory from rewrite rule

I have 8 lines of rewrite rules in my .htaccess file. I need to exclude two physical directories on my server …

.htaccess mod-rewrite url-rewriting
Rewrite URL after redirecting 404 error htaccess

So I know this may seem a little strange but I for sake of consistency, I would like all my …

.htaccess redirect url-rewriting rewrite custom-error-pages
How to deny access to a file in .htaccess

I have the following .htaccess file: RewriteEngine On RewriteBase / # Protect the htaccess file <Files .htaccess> Order Allow,Deny …

.htaccess
how to change php version in htaccess in server

I'm using php 5.3 on my local machine. On our webserver we have php 4.8. Our server is a shared server. So …

php .htaccess version