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
5 answers
59k 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 ...
Paul Connolly's user avatar
3 votes
2 answers
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 ...
Andy's user avatar
  • 775
0 votes
1 answer
242 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 ...
cea's user avatar
  • 563
10 votes
6 answers
4k 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 ...
Tommi Forsström's user avatar
7 votes
3 answers
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 ...
Lester Peabody's user avatar
4 votes
3 answers
6k 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: ...
Lenin Meza's user avatar
6 votes
1 answer
3k 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 ...
Alexander Farber's user avatar
4 votes
1 answer
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 ...
Taylor Taff's user avatar
4 votes
3 answers
1k 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 ...
Jiminy Cricket's user avatar
2 votes
1 answer
4k 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/...
ianckc's user avatar
  • 143
2 votes
3 answers
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 ...
Stephan Celis's user avatar
1 vote
2 answers
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 ....
groovehunter's user avatar
1 vote
1 answer
381 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 ...
Ehsan's user avatar
  • 379
0 votes
1 answer
53 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 ...
TBJ's user avatar
  • 606
0 votes
1 answer
112 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. ...
Coomie's user avatar
  • 1,209
0 votes
1 answer
129 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 ...
OhkaBaka's user avatar
  • 403
-1 votes
2 answers
290 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 ....
Can's user avatar
  • 45