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

learn more… | top users | synonyms

0
votes
0answers
16 views

.htaccess not redirecting

We updated our Drupal page a week ago, and we want to rid of some old urls. Before, our url worked like this: "nameofcompany.com/en/Products", for example. Now we changed it so the url is like this: ...
0
votes
1answer
18 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
13 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 ...
-1
votes
0answers
27 views

How do I block a site from accessing my site? [closed]

I have an unwanted ad on my site from http://predictionai.com/. I already emailed the person who is in control of the site. But haven't heard back. I only see it in my chrome browsers on window ...
0
votes
0answers
17 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 ...
-1
votes
0answers
34 views

How to enable deflate/gzip compression for PHP? [duplicate]

Actually Google Page Speed complains about not compressing my HTML output with mod deflate. (js/css/fonts/svg etc. work are compressed as expected). How do I enable compression for the HTML ...
0
votes
0answers
13 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
30 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
13 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
23 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
38 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 ...
0
votes
0answers
23 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
40 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
90 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
120 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
62 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
46 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
27 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
88 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
26 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
41 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
42 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
57 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
45 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 ...
1
vote
0answers
16 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
67 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
74 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
22 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
39 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
133 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
29 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
122 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
91 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
72 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
240 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
59 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
199 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
219 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
39 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
40 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
103 views

Rewriting paths

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 ...
1
vote
1answer
61 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, ...
1
vote
0answers
9 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
39 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
203 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
76 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
113 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 ...
1
vote
0answers
116 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
371 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
658 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 ...