Top "Mod-rewrite" questions

URL rewriting module for the Apache web server.

How to force https on elastic beanstalk?

I can't seem to force https on the free usage tier of elastic beanstalk. I have tried the following suggestion …

apache mod-rewrite https amazon-web-services amazon-elastic-beanstalk
What does this this HTTP Authorization RewriteRule do?

I have an rewrite recursion error somewhere on my website that Google Bot caused, but I can't find the url …

.htaccess mod-rewrite url-rewriting apache2 googlebot
.htaccess url-rewrite if file not exists

I must do a little trick for a site! The idea is: if a file for a required url exists …

.htaccess mod-rewrite url-rewriting file-exists
apache HTTP:X-Forwarded-Proto in .htaccess is causing redirect loop in dev environment

I've had to update my .htaccess from this: RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] to …

regex amazon-web-services apache .htaccess mod-rewrite
Is there a way to force apache to return 404 instead of 403?

Is there a way how I can configure the Apache web server to return a 404 (not found) error code instead …

security apache mod-rewrite http-status-code-404 http-status-code-403
.htaccess redirect subfolder to HTTPS

I'm trying to write a RewriteRule for my .htaccess file. Specifically, whenever a user accesses a specific subdirectory, I would …

.htaccess mod-rewrite https url-rewriting
.htaccess redirect - automatically add www. if no subdomain exists

I need any www. added automatically to my domain ONLY IF a subdomain is not already there. I do want …

.htaccess redirect mod-rewrite subdomain
How to disable Apache gzip compression for some media files in .htaccess file?

I would like to disable gzip compression for some media files which are already compressed on an Apache server via …

apache .htaccess drupal mod-rewrite apache2
Preserve HTTP/HTTPS protocol in .htaccess redirects

I have to redirect port 80 to 2368 in htaccess but I'd like to keep the requested protocol intact so that SSL …

.htaccess mod-rewrite rewrite
Only allow certain IP addresses to access site with mod_rewrite?

We have a directory on our site which we only want to be accessible by a couple of IP addresses. …

redirect mod-rewrite ip block whitelist