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

learn more… | top users | synonyms

-3
votes
0answers
38 views

Add Expires header [on hold]

I tested my site with "gtmetrix" how to set "Add Expires headers" in drupal ? Can you explain to me what is the code in my .htaccess ? As it has no effect in GTmetrix # Requires mod_expires to be ...
0
votes
1answer
29 views

The administrator menu disappeared

I added the following code in my .htaccess file : <IfModule mod_headers.c> Header set Set-Cookie HttpOnly;Secure Header always set X-XSS-Protection "1; mode=block" Header always set X-...
0
votes
1answer
19 views

Redirect in multidomain sites

My story is: I use module Domain Access for Multi domain feature and Internationalization, Domain Variable for the multilingual features. I have these domains: www.domain-a.com (main domain) www....
1
vote
0answers
73 views

Font-face icons, and some images appear corrupted or hidden (Allow Origin issue) [closed]

In several Drupal 8 websites I encounter corrupted icons and hidden images. The icons and images appear fine, at lease in part, in the local Ubuntu environment, but see for example how they appear on ...
0
votes
1answer
26 views

drupal link not working on live server after moving from localhost

i have moved my drupal site from localhost to live server but all links and contents are not access able and it gives (404 Not Found error was encountered while trying to use an ErrorDocument to ...
0
votes
1answer
62 views

Update from 8.1.3 to 8.1.7 gives me a fatal error on most pages

After attempting to update to version 8.1.5 I received the "The website encountered an unexpected error. Please try again later." error on many pages. I also get the following error in Recent Log ...
0
votes
0answers
17 views

Drupal Installed in subfolder but it is redirecting to root path after submitting a node

Drupal Installed in subfolder, I have done somany changes in rootpath htaccess & settings.php file as well as subfolder htaccess & settings.php files but still it is redirecting to main folder ...
1
vote
0answers
20 views

Do I need a htaccess to be able to use this module? [migrated]

I am using Drupal on a Windows/IIS7 environment. According to the Boost 7.x installation instructions (https://www.drupal.org/node/1459690), Boost will not work without .htaccess but Windows/IIS7 ...
0
votes
0answers
10 views

Drupal Installed in subfolder, Issue is redirecting to main folder after saving a node

I have done somany changes in rootpath htaccess & settings.php file as well as subfolder htaccess & settings.php files but still getting the below issue. Drupal Installed in subfolder, Issue ...
1
vote
1answer
22 views

Kernel error after setting up the site

I have realized that my Drupal Clean URLs didn't work because my .htaccess file was in ...drupal/sites/default/files directory and after copying it to .../drupal directory, now the .htaccess file is ...
0
votes
1answer
43 views

Only front page works

I am trying to set up a local server to try out drupal 8.1.3 and so far I was able to set up my profile and website but I cannot go to any pages other than the first page. (Welcome page, front page) ...
1
vote
1answer
65 views

“You don't have permission to access / on this server”

I'm running my local development sites on a Windows machine with Uniserver. I have them all set up as vhosts and they work fine with Drupal 7. Recently I decided to install a vhost with Drupal 8, but ...
1
vote
0answers
34 views

Upload to private directory [closed]

I'm trying to setup a private folder for part of the files I need to make available in my Drupal 8 install and I'm having some trouble. My public files are being served with no problem in sites/...
0
votes
0answers
22 views

500 error after migrating to production sever [duplicate]

Just now, I shifted all the files and database of my drupal 7 website to production server using FileZilla. The website was showing 500 internal server error. After debugging, I realized that ....
0
votes
1answer
34 views

Special code for .htaccess and robots.txt files

My client was noticing that his site was extremely slow yesterday morning so he contacted his WiredTree host, who suggested that we add the following code in the .htaccess file: Options +...
2
votes
2answers
40 views

redirect whole site to HTTPS

When I include the snippet found in answer to this question How to simply make the whole site HTTPS? to redirect to https in my htaccess.php file, all urls resove to /index instead of going to the ...
0
votes
0answers
23 views

Ajax 403 Error Access Forbidden when editing views or creating blocks

I'm getting 403 Errors, Access Forbidden on a Drupal 7 site when trying to edit views or add blocks. The error doesn't always occur, but once it start it doesn't go away either. The hosting company ...
1
vote
1answer
37 views

How to eliminate direct access to files in private directory?

I have set up my Drupal 7 site for private files in a directory above root (../private). I also set my filefield on my node type to upload the image files to that private directory. I have two user ...
1
vote
1answer
33 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 ...
1
vote
0answers
34 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
11 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 ^(.*)$ index....
0
votes
1answer
26 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
64 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 sub-...
1
vote
2answers
56 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
23 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 directory....
5
votes
3answers
576 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 ...
1
vote
2answers
46 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
32 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 ...
1
vote
1answer
127 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
21 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
47 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
24 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
73 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
26 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
vote
0answers
30 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
vote
0answers
23 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
40 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
17 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: //docs.google.com/viewer?embedded=true&url=http://...
0
votes
1answer
35 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
63 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 copy/...
1
vote
0answers
43 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
61 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
171 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
234 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
98 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
63 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
37 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 ...
0
votes
1answer
53 views

How to add a page redirect in Drupal htaccess file or otherwise?

I've built a Drupal website to a replace an old website (not in Drupal) and some of the pages changed urls. I need to create redirects for those pages. I've thought of using Drupal's .htaccess file ...
2
votes
0answers
122 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 ^(.*)$ https://%{HTTP_HOST}%{...
1
vote
0answers
35 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 ...