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

learn more… | top users | synonyms

1
vote
0answers
12 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
32 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
32 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 ...
2
votes
0answers
31 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
34 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
35 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
21 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
32 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
20 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
25 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
43 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
31 views

.htaccess concatenating www + subdomain [on hold]

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
24 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
66 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 ...
1
vote
0answers
29 views

Access site via services only

I am getting lots of spam in my website. Tried some modules : Honeypot Http BL No luck yet. Now decided to make the site for web services only. Web services are done with Services module. How ...
2
votes
3answers
33 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
66 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
90 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
154 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
36 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
30 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
70 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
89 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
37 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
40 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
159 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
110 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
97 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
103 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
200 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
136 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
115 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
349 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
107 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
24 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
37 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 ...
0
votes
1answer
41 views

private files in drupal 6

I have a sub directory in my files directory which I want to store private images. I display the images with their watermark, via the imagecache modules. I thought I could make the directory (with ...
-1
votes
1answer
37 views

Drupal installation not working/ what is .htaccess [closed]

I have a lamp server and using drupal. The is on Ubuntu server 14.04. My drupal version is drupal 8.0.0 alpha 15. I followed this guide to install both: http://youtube.com/watch?v=zsPc_Tb8bI8 The ...
0
votes
0answers
24 views

Clean URLs test fails in drupal7 + mod_vhost_alias

In a local Drupal7 installation running on an Apache with mod_vhost_alias enabled, the Clean URLs test always fails and I have tried combinations of different things and I am still not able to get ...
0
votes
2answers
41 views

Drupal 6 will not use updated htaccess 301 information

I'm not 100% sure that this is a Drupal problem, but I think there is any issue with my site not flushing the cache. I am trying to change a redirect. I was having some trouble with URL Redirect in ...
0
votes
1answer
71 views

Move Drupal to subdirectory - clean urls

There is a requirement to move site from www.test.com and make it available only under URL www.test.com/newsite. When the clean URLs are enabled and after i click to login to the administration ...
0
votes
0answers
27 views

Drupal 7 multisite password protect single site

I am running a Drupal 7 multisite platform in which sites will be added at a later date to a live version of the website. During the testing process I need the new sites to be on their final live ...
0
votes
1answer
26 views

Drupal rendered page for directory root, followed by static pages?

I have a directory that I want to load through the Drupal system, which of course is fine with clean URLS: /my-dynamic-page/ However at this directory I then want to serve static pages ...
0
votes
0answers
50 views

Drupal Multi-site configuration not working

I'm trying to configure multi-site with subfolder module in Drupal 7, but i'm facing issues with it. I'm trying to create a site with example.com and domains like example.com/site1 and ...
0
votes
1answer
32 views

Moving from custom CMS to Drupal and need to keep a myriad of old mod_rewrites

I am moving content from an existing custom built CMS into Drupal 7. There is a host of mod_rewrite rules in place. These rules expand path names in the URL. For example, the rule below effectively ...