Related Content
Drupal 9: The Correct Way To Redirect A Page
I was recently working with a Drupal 9 site and found some strange behaviour when saving certain types of content. The page would appear to save, but much of the content appeared to be missing. It had even failed to generate the paths for the page based on the path auto rules.
Allowing Cached HTTPS Traffic From Drupal With Varnish And Pound
Turning Off Apache Basic Authentication For A Single Directory
When setting up staging sites or similar I often add a simple Apache authentication check in order to stop everyone from viewing the site. This is also useful in stopping search engine spiders from accessing a site with testing content on it, which generally causes trouble. It isn't amazingly secure, but it keeps almost everyone out.
IE8 Downloading docx Files As zip On Apache
I recently built a Drupal site on an Apache server setup and everything seemed fine until someone running IE8 tried to download a .docx file. For some reason IE8 insisted that this file was a .zip file and would open it as such, causing a bit of confusion as to what the problem was.
Redirecting From One Domain To Another Using Mod Rewrite
Use the following rules in your Apache configuration (or your .htaccess file) to redirect all traffic from one domain to another. This also keeps the query string in place so that the user isn't just dumped to the homepage.
Localhost Apache 2 Server Warning On Ubuntu 11
I was recently setting up a localhost environment with Ubuntu 11 and after adding all of my needed VirtualVost directives I found that I could start/restart the server but that I found the following error when trying to start the server.
Comments
hi there,
I am trying to redirect https to http for the website coupon aid
I changed htaccess but it doesn't seem to work. Could you take a look and see what the problem is?
it's not redirecting :(
Submitted by help needed on Mon, 05/16/2011 - 04:19
PermalinkIf it isn't redirecting then there are a couple of things you can try. The rules above require mod_rewrite being available on your Apache server, if it isn't on then the rules throw and error. There may be an issue with the expression you are using to redirect if you are trying to do it with an inner directory. Either way, any errors should be logged by your Apache server in the error.log so if nothing works that should point you in the right direction.
Submitted by giHlZp8M8D on Mon, 05/16/2011 - 09:04
PermalinkSubmitted by Mauro on Fri, 10/25/2013 - 00:05
PermalinkSubmitted by Sean on Thu, 06/26/2014 - 11:51
PermalinkSubmitted by Fulvio on Fri, 07/08/2016 - 07:57
PermalinkSubmitted by madhushalini on Sat, 05/13/2017 - 12:52
PermalinkHello,
RewriteCond %{HTTPS} on
RewriteRule ^/?$ http://%{SERVER_NAME}/ [R=301]
RewriteRule ^inner/directory/?$ http://%{SERVER_NAME}/inner/directory/ [R=301,L]
after using this above code i faced a problem like directory index listing enable and trying to make it disable is not working using htaccess file or other source.
just i need to redirect HTTPS to HTTP . please provide me a solution for this and also let me how to disable the index listing.
i used many possible way to redirect or disable index listing is not working..
Submitted by Raj0130 on Wed, 05/30/2018 - 06:46
PermalinkI want to say my website ssl remove & http (S) only how to remove any suggest
Submitted by prashant on Thu, 07/18/2019 - 07:07
PermalinkI hope this will be helpful for someone
RewriteEngine On
RewriteBase /
# Turn SSL on for /user/login
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/(yourfilename\.php)$ [NC]
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L]
# Turn SSL off everything but /user/login
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/(yourfilename\.php)$ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Submitted by Thiru on Tue, 03/03/2020 - 06:23
PermalinkAdd new comment