Questions tagged [.htaccess]

Use it for questions about the configuration file used from the Apache server, the .htaccess file.

Filter by
Sorted by
Tagged with
20
votes
5answers
53k views

How do I simply make the whole site use a secure connection? [closed]

In Drupal 7, I used the Secure login module to run the site on a secure connection, but it seems it doesn't revert back to http on logout. I would like to just run the whole site as https:// as a ...
3
votes
2answers
7k views

Rewrite URL not working

In Drupal 6 I used the following snippet of code in my .htaccess file to extract information from a non-existent URL and pass it to an existing URL in a GET form. However, it isn't rewriting the URL ...
0
votes
1answer
205 views

Multisite domain not working without symlink

I used to have to work with my own custom *.conf file in order to get my multi-site to work off a non root install of drupal but now have moved it to root ,I don't need that file anymore as system ...
7
votes
3answers
10k views

Redirect /user/login to HTTPS, all other requests to HTTP

I'm using Drupal 7. The login page for my users is located at /user/login, so the default login path. I need that page to be encrypted using SSL so people aren't transmitting their passwords in the ...
3
votes
3answers
4k views

Drupal 8: Multi-sites in subdirectories not working

I followed this tutorial(Drupal 7) but it not worked for me(Drupal 8): Multi-site in subdirectories https://www.drupal.org/docs/7/multisite-drupal/multi-site-in-subdirectories This is my enviroment: ...
6
votes
1answer
2k views

How to place Drupal_Security_Do_Not_Remove_See_SA_* into httpd.conf instead of .htaccess

I run several Drupal 7 installations on a dedicated server with CentOS 6.4 and Apache 2 (the package httpd-2.2.15-29.el6.centos.x86_64). I wonder, how to properly configure the ...
10
votes
6answers
3k views

Friendly error page to replace WSOD

This should be the easiest thing to do, but for some reason I just can't get it done. I'm trying to get a friendly static error page to replace nasty 500 scenarios. For now I'm just trying to ...
4
votes
1answer
10k views

Adding .htaccess within httpd.conf correctly

I am looking for advice on the correct way to place my .htaccess settings within my httpd.conf. Here is the server httpd.conf with the htaccess placed within a directory as per most instructions I ...
4
votes
3answers
967 views

How do I make ugly URLs such as “/index.php?main_page=about_us”?

I'm converting a Zen Cart site to Ubercart and need to keep Zen Cart’s ugly URLs for SEO purposes. The site is top ranking on Google Search for their keywords and I’ve been advised that changing the ...
2
votes
3answers
2k views

Drupal does rewrite url but can't load css/themes

I have an url rewriting issue with my drupal 7 I'm trying to rewrite for example index.php?q=categorie&categorie=laars to categorie/laars.html So I downloaded the default drupal 7 .htaccess file ...
2
votes
1answer
3k views

Drupal 7 .htaccess redirects

I'm trying to redirect some old urls to the new Drupal ones with .htaccess rules. This works Redirect 301 /oldurl http://mysite.com/new-url But this gives me a Drupal error Redirect /people/...
1
vote
2answers
1k views

specific htaccess in some sites on multisite

i have several drupal sites running as multisite (same core + modules code), just moving to shared hosting Some sites should be kept password protected. (AuthType Basic) Is there a way to tell in ....
1
vote
1answer
357 views

.htaccess problem for Drupal

I decided to ask about this issue, because I found this problem is a common problem for many Drupal designers. It seems to be a common problem for many drupal designers to face with the Server Error ...
0
votes
1answer
109 views

Problems with Clean URLs

I've got a problem with Clean URLs. I had a look around and my problem doesn't look like any thing else on this site or anywhere on the internet. I have a .htaccess file. It's there and it's working. ...
0
votes
1answer
51 views

Impossible to edit nodes, log to in etcetera after enabling Boost and editing .htaccess

After installing and enabling Boost in my Drupal 7 site (locally on WAMP and I also tried it on a remote test site) it's not possible to send any forms, e.g. not possible to edit and save nodes, not ...
0
votes
1answer
121 views

How do I use .htaccess to trigger mod_rewrites before D7's Clean URLs take over?

I am migrating from olddjango.com to newdrupal.com, and need a way to alter the URLs from the old style into the a format we've chosen for the new Drupal application. In addition to rewriting them, I ...
-1
votes
2answers
225 views

.htaccess does not work?

I'm using Litespeed and clean-urls has been activated. When I upload .htaccess file, my Drupal does not render links and all link/buttons/drop-down menus expands autttomatically. When I remove ....