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

learn more… | top users | synonyms

0
votes
1answer
17 views

Redirect exclusion rule in .htaccess does not work

I have a rule in my .htaccess to redirect all HTTP traffic to HTTPS, and I'm trying to exclude some specific URL from redirect, so I added the negation exclusion rule: RewriteCond %{HTTPS} off ...
0
votes
0answers
12 views

Allow access to private files only to Drupal, rest all 'access denied'

I have a drupal 7 installation with PDF module on NGINX server. I have a PDF.js field configured in all of the content types, PDF uploads through this goes to private (I NEED this as private). pdf.js ...
0
votes
0answers
9 views

Couldn't Access to a non-drupal folder

I have a php application folder inside my drupal folder, After some research I modified .htacces file by adding those lines: RewriteCond %{REQUEST_FILENAME} !^inscription RewriteRule ^(.*)$ ...
0
votes
1answer
22 views

With out www in url redirecting to home page

I know this can be done using .htaccess file, but not sure what I have to write. when I am entering example.com/abc it is redirecting to example.com, but when I am entering www.example.com/abc it is ...
0
votes
1answer
22 views

D8 doesn't create .htaccess for private file system path

Following this guide: https://www.drupal.org/documentation/modules/file it says "When you specify the private directory in admin/config/media/file-system it will automatically create the ...
0
votes
2answers
41 views

My server ignores the .htaccess file [closed]

I have a terrible problem: I have written rubbish within the .htaccess file, in order to break my web site, and cause an error 500. Result: nothing, nothing happens, the web site continues to be ...
0
votes
1answer
22 views

Drupal's .htaccess does not deny access to nodes

D7, .htaccess woes. I'm trying to deal with referer spam in my Statistics module and block the most notorious referers. I edited my .htaccess file like this: # Follow symbolic links in this ...
5
votes
3answers
549 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 ...
0
votes
2answers
37 views

Failed attempt at moving Drupal 8 to a clean installation of my OS.

Okay, so ive reinstalled my ubuntu OS, reinstalled the LAMP stack, ive restored the database and connected to it just fine. Ive checked which php modules drupal 8 requires and installed them, my ...
0
votes
0answers
23 views

HTTPS access causes subfolder to appear in URL

Basically, I have a Drupal site that I wanted to force HTTPS access-only on, which (technically) I managed. However, when the site is accessed via HTTPS the URL will always contain the sub-folder ...
0
votes
1answer
51 views

Some images are not displayed in IE [closed]

Some images fails to load on IE. DOM7009: Unable to decode image at URL: '[some unique url]'. The URL are set to sites/default/files/styles/image/image_name.jpg?itok=RANDTOKEN I can fix the error ...
0
votes
1answer
20 views

Home page only page accessible, no login with clean urls

I'm trying to copy a live site to my windows development machine for some module testing and updates. I have a copy of the complete live site's codebase (entire drupal root from live server) and the ...
3
votes
2answers
40 views

Drupal in redirected site folder not working

My web host directs traffic to the main public_html folder on the site for my main site. ` However, I want my main site to redirect to a subfolder for organizational reasons, so I can easily manage ...
1
vote
0answers
21 views

All URLs point to the front page

I've just copied a multisite installation from a production server where everything is working fine. I think I've got a configuration issue in my hands because content is present so the databases are ...
0
votes
1answer
41 views

htaccess non www to www redirect is not working properly

I have a site here at http://www.tlsasalestraining.com/browse-all-training-solutions its redirect non www(http://tlsasalestraining.com/browse-all-training-solutions) is taking it to homepage. Attach ...
1
vote
1answer
23 views

After moving Drupal 7 site, adding /user or /?q=user to base URL simply reloads maintenance page

I've just moved a Drupal 7 site from Bluehost to Inmotion (by reinstalling the latest core and adding the 'sites' directory from the old server account, then uploading the database). Since the move I ...
0
votes
0answers
26 views

Drupal 7.41 images not being displayed

I Have Drupal 7.41 site installed on a vps with centOS 6 PHP 5.5 using webmin as my control panel. I have 2 htaccess files one in the root and 1 in the sites/default/files I have tried the following ...
0
votes
0answers
18 views

Drupal in Azure behind Loadmaster - HTTPS enforced no CSS

I bow to those who can help me out with this. I've done this with F5 before but for some reason this isn't working. Drupal 7 sitting behind a Kemp LoadMaster, behind an Azure Load balancer. With Kemp ...
1
vote
1answer
34 views

Unable to update content or enable / disable module via Drupal Admin once migrate to live server

I have moved my website from local machine to live server, but after migration I can not save or update contents. After clicking on 'Save' button page refreshes without any changes. Also I can not ...
0
votes
0answers
15 views

Acess Private files for specific domain for view its content

I have my private PDF files in my private folder. I want to view my PDF files in iframe by docs.google.com/viewer like given URL below: ...
0
votes
1answer
25 views

multi url allies for same node

I have set my auto URL allies to something like this "store/[node:nid]/[node:title]" having node title in url will make it more human readable and better SEO. the issue is I want to be able to access ...
0
votes
1answer
52 views

Local moved to Server all nodes 404

My homepage works perfectly fine on the live server but when I use any of the links they give me a 404 Page not Found. I tried a couple things which was: Made sure .htaccess was there Tried a ...
1
vote
0answers
31 views

Htaccess 301 redirects after switching language detection method

We have a multilingual Drupal installation with a domain for each language. Like this: domainexample.com domainexample.no domainexample.de etc... We want to switch to a single domain and use ...
0
votes
1answer
53 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 ...
1
vote
1answer
127 views

Purpose of the .htaccess files in the Drupal files directory?

Besides the .htaccess file in the Drupal site main folder, I've found a .htaccess file in the sites\default\files folder, and further such files some sub-folders of sites\default\files folder (for ...
1
vote
1answer
177 views

Why don't I get any CSS output?

I did a fresh install of Drupal 8. Everything had a nice style while installing, but when it was done, there was no CSS anymore. Did the installation change some file rights? I tried flushing the ...
0
votes
0answers
78 views

Prevent spammers accessing my site by blocking their IP address

Story: I have my drupal site hosted in aws. Initially there were so many spam registrations occured. I prevented this completely by google recaptcha. By checking the recent logs in drupal I see the ...
0
votes
1answer
55 views

How to change path of file from absolute to relative?

In my website, some of the images are having absolute path of old server .../old_directory/sites/, but now I have changed my server, I want that these images should be picked from /sites/ path of my ...
0
votes
1answer
33 views

Serve drupal page to secondary domain

I have a drupal site running on a server with two domains pointed to it: domainA.com and domainB.com. I would like domainB.com to serve a specific landing page, http://domainA.com/landing-page. I know ...
1
vote
0answers
102 views

Redirect whole site to HTTPS, with exceptions

I've successfully redirected my entire Drupal 7 site to HTTPS using the snippet: RewriteCond %{HTTPS} off RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ ...
1
vote
0answers
32 views

Drupal images/links at the wrong URL(sometimes)

I have a Drupal website installed on cPanel. the site is at http://example.com Everything is working good, however at times, sometimes the images/links will be changed to a different URL then the ...
0
votes
1answer
57 views

Keep Alive in .htaccess

Any potential issues with enabling keep alive in the .htaccess file for my Drupal 7 websites? Header set Connection keep-alive
1
vote
0answers
43 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
68 views

Enable Https in drupal site [closed]

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
51 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 ...
2
votes
1answer
155 views

The connection to the server was reset after trying to log as admin to Drupal

I did upgrade on Drupal 7 and imported these sites and database from localhost to another server. On localhost everything works well, on the server I can´t log to Drupal as admin. After entering ...
1
vote
0answers
20 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 ...
1
vote
0answers
94 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
85 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 ...
1
vote
1answer
23 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
46 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 ...
2
votes
2answers
179 views

How to 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
31 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
131 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 ...
1
vote
2answers
121 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 ...
4
votes
1answer
73 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
319 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
68 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 ...
1
vote
1answer
274 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
288 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 ...