A .htaccess file is used to make configuration changes within a directory.

learn more… | top users | synonyms

0
votes
0answers
18 views

Temporarily redirecting part of a site

I'm having a problem between .htaccess and Drupal. Two sites (temporarily), one D7 in Drupal root and one D6 in subdirectory, both with the same content, some of which has to be shown in D6 for now. ...
0
votes
2answers
27 views

Enable Https in drupal site [on hold]

I want to enable https in my drupal sites . I've read this article about this : https://www.drupalaid.com/blog/how-to-quickly-add-ssl-to-your-drupal-site . and add these code to my htaccess : ...
0
votes
1answer
24 views

Drupal page with static (non-Drupal) sub-pages

I'm trying to figure out what sort of htaccess rules or directory setup I need to have a Drupal page created with page manager and separately have a collection of static pages or micro-sites off of ...
0
votes
0answers
11 views

Using Domain Access produces HTTP code 500

I was having a 500 error when going to subdomain. I looked at this thread, Drupal 7 Domain Access Module Gives 500 error, WSOD for subdomains, and managed to get rid of the 500 errors by editing my ...
0
votes
0answers
30 views

too many redirects in directory aside drupal

I installed drupal in a webroot where there were 4 directories: _database _demos _test _old When I try to access to some of those directories there is a message: "ERR_TOO_MANY_REDIRECTS" My drupal ...
0
votes
0answers
11 views

Add +Indexes (with autoindex) to sites/default/files directories

On my site I've to add a custom directory in sites/default/files, like "sites/default/files/archive". A crawler has to index this directory and so I've to add a "+Indexes" option in Apache (with ...
0
votes
1answer
18 views

htaccess multisite config crashed after sites move to other host

I am on my long way to move my D6 site to other hosting company. It was hard but finally seems it's almost done but I am stacked on multisites configuration. Situation is like this: Drupal folder ...
0
votes
0answers
9 views

Drupal module Boost pulling the wrong pages

I am implementing the boost module for Drupal on my site and have run into this caching problem. The site caches pages but when visiting as an anonymous user it gives me the wrong cached pages. I am ...
1
vote
1answer
34 views

Rewrite Views filter urls when based on an aliased node url

I realize this seems confusing, but let me give some background first: I have a node (say node/123) with a path alias (call it: /books). So if I go to http://example.com/books I'm viewing a page ...
1
vote
0answers
21 views

Multi domain images not showing up

I have a multilingual site that has a different domain for each language (.eu, .com, .nl and. de). everything was functioning well untill today. The site shows an acces denied message when I try to ...
0
votes
1answer
54 views

Another question on Drupal files folder permissions and security

So there are the following two posts (among others) that say 755 is okay for the sites/default/files directory: What are the recommended directory permissions? Confusion about files permission I ...
0
votes
1answer
40 views

Hide url in subdirectory install?

in my site I use version 7 of Drupal and Linux OS on the server, and need to hide the subdirectory of the installation when access by LINK ... explaining better: Current link: www.site.com/folder I ...
3
votes
0answers
37 views

Routing to production and testing Drupal installations on shared hosting account

I am having issues with routing users to different domains on a shared hosting account. Each of these domains are separate Drupal installations with separate databases. site is intended to be the ...
0
votes
1answer
77 views

htaccess not working on drupal 7 when uploaded to pantheon server

My drupal site has a .htaccess file on which I am redirecting the page without changing the URL, Its working fine on local server & other servers but when I upload the files & databases to ...
1
vote
1answer
40 views

What is good way to hide update.php file?

I will like to know what is the correct/better way to hide update.php file on the production server. Currently when you try to access update.php file, Drupal shows default access denied page with ...
0
votes
1answer
47 views

Drupal in subfolder, clean urls and images (htaccess not quite right)

I have my Drupal installation in a subfolder and it's working ok, but there's one problem. New images can't be generated from image styles unless clean urls are turned off. This is my .htaccess in ...
1
vote
1answer
52 views

.htaccess https rewrite for single domain on drupal multisite installation

I have a multisite installation with 2 sites running off separate domains. One of these sites needs to go through https:// while the the other can stick to http://. I also want all traffic to be ...
1
vote
0answers
27 views

How should I translate the “double gzip” parts of default .htaccess into an nginx directive?

There is this section of the default .htaccess: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] RewriteRule \.js\.gz$ - ...
0
votes
1answer
29 views

Updating settings.php breaks website hosted from subfolder

This is somewhat linked to this question. I have 2 Drupal 7 sites hosted in subfolders, one of which is intended to be a production site (public_html/site1) and the other is the testing site ...
0
votes
1answer
55 views

Rewriting paths in drupal 7

By default, pages on our site look like: http://www.example.com/items/item-1-name First, I need them to have ".html' on the end: http://www.example.com/items/item-1-name.html Second, I need any ...
0
votes
1answer
42 views

.htaccess concatenating www + subdomain [closed]

I'm running a new Drupal 7 site on Ubuntu 14 (so no httpd.conf file), and am trying to make a simple htaccess rule to redirect from no subdomain to www. Basic stuff, the Internet told me what to do, ...
0
votes
0answers
5 views

.htaccess problem virtual subpath

i spent tons of hours to solve a problem without success, so i'm here now. If you visit my website example.com everything looks nice (y) But when you click on a navigation point the url will change ...
0
votes
1answer
30 views

Drupal and apache rewrites

I'm just migrating a site that has a proxy pass in the vhost config like the following. ProxyPass /n/ http://xxx.xxx.xxx.xx:80/n/ ProxyPassReverse /n/ http://xxx.xxx.xxx.xx:80/n/ I need to ...
0
votes
1answer
139 views

htaccess in files folder breaks displaying of images

recently I installed media module and all files in /file directory became unreachable - browser gives 500 internal server error. I can confirm files exist there. After removing htaccess from files ...
2
votes
1answer
46 views

How can I restrict access to my website via web services only?

I am getting lots of spam in my website. Here are some modules I tried as a remedy: Honeypot Http BL No luck yet however. Now I decided to make the site available only for web services only, ...
2
votes
3answers
53 views

How can I make special non-Drupal URLs without file extensions?

As I understand it, Drupal is supposed to check the web root for any URLs it doesn't recognize, to see if it's a non-Drupal file on disk. Also, Apache is supposed to assume that anything without a ...
0
votes
0answers
86 views

D7 sites/default/files/.htaccess caused unloaded css&pictures&etc…

After an error [SA-CORE-2013-003 - Drupal core - Multiple vulnerabilities] notice showed up in my site's status report page, I rewrote the content according to this ...
0
votes
1answer
142 views

Drupal vs Options Indexes?

I have an .htaccess file with Options Indexes FollowSymLinks, my /apache2/sites_available/default file also has these options and AllowOverride All. If I do these things outside of Drupal it's ...
1
vote
1answer
255 views

Why are URLs with non-existing subdomains not triggering an error 404?

One of my websites ignores random subdomains. The site doesn't have any subdomains but it will happily accept URLs such as: fjiddifjdskdjf.example.com dsfkljsdflsdjfds.example.com In both cases it ...
0
votes
0answers
48 views

Make it so that ALL pages are served over SSL using .htaccess

I'm trying to make it so that ALL pages are served over SSL and have a https:// prefix. I'm using the latest Drupal (as of 16.2.15) and running Apache (Fast CGI) I'd really like it so that if a ...
0
votes
0answers
45 views

The .htaccess file exists but does not contain the correct content. It is possible it's been maliciously altered

I have a .htaccess file in the files directory and the .htaccess file permission is 444. On running security review , I get the following response "The .htaccess file exists but does not contain the ...
0
votes
0answers
18 views

is it safe to chmod -R 777 ~/www/sites/default/files? [duplicate]

Since drupal 7.34 drupal doesn't display images anymore. I tried editing .htaccess and other things. The only thing that seems to work is to change permissions of the files folder and its subfolders ...
0
votes
1answer
1k views

Resource interpreted as Image but transferred with MIME type text/html

I've been embedding an image with my page using item type form control in Drupal 7 Forms API.Below are my codes: function myid_user_page_form(){ $form = array(); $form['id'] = array( ...
0
votes
1answer
86 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 ...
0
votes
2answers
11 views

Point visitors to directory depending on Drupal site visited

I am in the process of completing a transition from my client's old sites to a Drupal installation with multiple sites (this is my first experience with Drupal). Some of their older migrated content ...
0
votes
0answers
114 views

Need help using htaccess mod_rewrite, is it because of Drupal's URI handling via pathauto?

I've been on this all morning and am giving up so here goes Question: I'd like every page on my Drupal site to be HTTPS except for one page (created in Drupal as a page node). Using Drupal 6.x ...
0
votes
1answer
39 views

Url problem due to htaccess

I uploaded my website here . But when I check the url it doesn't change when I click another page. I used the Rewritebase in my .htaccess to have clean urls. The url should be like ...
0
votes
0answers
41 views

URL Redirect Issue

I am using Drupal 7. When you type the website url: www.exampleCountry.com, it gets redirected to www.example.com. Now, I need to change the www.example.com to www.example.com/country/countryName/. ...
0
votes
1answer
250 views

Drupal 7 redirect with www on without www

I need to do a redirect to the transition from www passed on without www. I uncomment this part in .htaccess. But when I go to the website link www.site.com I get an error: This webpage is not ...
1
vote
1answer
124 views

Clean URL's not respected on local

I have set up my Apache 2.4 on this new Yosemite machine to use vhosts but the clean urls are yielding 404s. The .htaccess works on the 1and1 server and I'm using it in this folder. Reading other SO ...
2
votes
2answers
42 views

RewriteRule fails if called after line 112 of .htaccess

I'm having an issue that is similar to this question. In short, I'm trying to use some custom RewriteRules to point old (no longer functioning) urls to new working urls. To accomplish this, I'm ...
0
votes
2answers
118 views

Drupal 404 redirect to a custom PHP file

Hello all Drupal experts, Is there any possibility to redirect Drupal 404 to a custom php file without sending actual 404 headers. Thanks in advance
0
votes
0answers
112 views

Drupal 7 adds document root path to url on redirect that uses .htaccess

I have a site that uses a rewrite rule to change a uri and redirect to that changed url. Drupal 7 seems to append the document root after the domain and before the changed uri. For instance the ...
0
votes
1answer
286 views

How Best 301 Redirect in Drupal 7?

How can I best redirect the following in Drupal 7? stuff/bookA.pdf stuff/bookB.pdf stuff/magA.pdf stuff/magB.pdf stuff/... stuff/magn.pdf to books/booka.pdf books/bookb.pdf mags/maga.pdf ...
0
votes
0answers
166 views

Enable Cloud flare ssl in drupal 7

I want to enable free https of cloudflare. I've add these line to .htaccess: RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteRule ^ ...
3
votes
2answers
135 views

Clean URLs with multi-site only with suffixes / sub-folders

In D7 Multisite, I'd like to use clean URLs. However, these sites share the same domain but have different folder names. For example, the login pages would are currently ...
0
votes
1answer
466 views

Why after installing Drupal 8 all links to the front page generates 404 error? [closed]

After installing Drupal 8 I get access to the front page but all links generate a 404 error. Why clicking on any links gives 404 error: http://localhost/drupal8/ while everything works fine with: ...
0
votes
1answer
117 views

mod_expires enabled and cache flush

I my apache I have mod_expires enabled. My htaccess contains: <IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). ...
0
votes
0answers
32 views

Theme goes away when i write .htaccess file

I had got a .htaccess file from: https://github.com/drupal/drupal/blob/7.x/.htaccess and copied it to /var/www/drupal/.htaccess. I got to my web browser and my default theme has disappeared. I copied ...
0
votes
2answers
45 views

Problem drupal with domain and redirection

I have problem with drupal site when migrate it from dev to production. My website works fine until I tried to login as admin. After enter username,password ,and click login I got error page not ...