Questions tagged [.htaccess]
Use it for questions about the configuration file used from the Apache server, the .htaccess file.
99
questions with no upvoted or accepted answers
4
votes
0
answers
443
views
Image styles are not generated in Docker for Windows
When I open in browser http://localhost:1567/sites/default/files/styles/thumbnail/public/2017-10/478069720_1384178114_4.jpg, I see 404.
The "original" images are uploaded successfully, and the ...
4
votes
1
answer
110
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 ...
3
votes
0
answers
527
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}%{...
3
votes
1
answer
318
views
Need to change the subdomain URL structure - D7
Need to change the subdomain URL structure from:
sub1.example.com
sub2.example.com
To:
www.example.com/sub1
www.example.com/sub2
Is there any module to do this in Drupal 7
If there is no other ...
2
votes
0
answers
593
views
Image styles not generating when an unrelated htaccess rule is active
Having a very bizarre problem on Drupal 8.4.4.
I have a custom module which accepts an image through a POST request and saves it as the submitting user's profile picture. This module has been in ...
2
votes
0
answers
369
views
Adding protection against hotlinking to .htaccess breaks generation of styled images
Drupal 8.3.4, Apache, Image Magick toolkit (via Imagick module).
I recently discovered some annoying hotlinking to my site siphoning my bandwidth and decided to disable it. Added the following to /...
2
votes
0
answers
795
views
SSL and Session Cookies Issue
I've spent a lot of time trying to resolve this issue but I feel like I might be missing something.
I'm having an issue with Drupal 7 and SSL. Here's what's going on:
Session cookies are not being ...
2
votes
0
answers
53
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 ...
2
votes
0
answers
44
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 ...
2
votes
1
answer
424
views
Call to undefined function menu_load() in .../public_html/includes/menu.inc on line 579
I really need your help. Actually, my journey begin with the installation Drupal and some modules. After a couple of days I suddenly get an issue "500 Internal Server Error".
I asked my hosting ...
2
votes
0
answers
89
views
Have all internal links in drupal leave out subdirectory where docroot resides
I've successfully followed some instructions online to get our plain url to direct to the content found in a subfolder (drupaldev) so that when you enter any url for that site even without the ...
1
vote
0
answers
51
views
RewriteBase and Administer software updates permission not working
User 1 is unable to run /update.php, with the error:
In order to run update.php you need to either have "Administer software updates" permission or have set $settings['update_free_access'] ...
1
vote
0
answers
81
views
How does SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 work exactly?
I ran into an issue (When using fpm, it is not clear how to make image styles work
) which I traced back to the use of Drupal_Security_Do_Not_Remove_See_SA_2006_006 in sites/default/files/.htaccess.
...
1
vote
0
answers
39
views
Multiple sites in same subfolder
I have multiple very similar drupal sites (each for a specific year of some project): 2012.somain.tld, 2013.domain.tld, etc. Their files are organized in subdirectories (2012, 2013, etc.) of ...
1
vote
1
answer
440
views
Locked out of the site, and new users can't get in
I have an odd problem. My new Drupal 8 site is a distro, purchased from ThemeForest. After installing it, I thought I created a new user correctly but maybe the name had disallowed characters. In any ...
1
vote
1
answer
825
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
0
answers
551
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 ...
1
vote
0
answers
66
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 ...
1
vote
1
answer
55
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
0
answers
48
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
0
answers
97
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
0
answers
128
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 domain ...
1
vote
0
answers
53
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.
...
1
vote
0
answers
47
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
0
answers
437
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 ...
1
vote
1
answer
506
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 ...
1
vote
0
answers
17
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 ...
1
vote
0
answers
179
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
https://www.drupal.org/SA-CORE-...
1
vote
0
answers
134
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 ...
1
vote
0
answers
409
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 ...
1
vote
2
answers
18
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 ...
1
vote
0
answers
69
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/.
...
1
vote
0
answers
62
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 ...
1
vote
2
answers
88
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 found....
1
vote
1
answer
155
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 site,...
1
vote
1
answer
83
views
Why does all links of homepage redirects me to Xampp homepage ( Took backup from Godaddy )
I took backup of SQL from Godaddy and copied all the data from my Godaddy hosting account through FTP.
I imported the SQL in my machine's mysql ( no issues ).
I copied the files to my htdocs/subdir1/...
1
vote
0
answers
1k
views
Clean URLs not working on centos 6 vps
I have installed drupal 7 in my vps running centos, but while i run clean url test using the drupal 7 clean url option in order to enable it the it shows error like this: "The clean URL test failed."
...
1
vote
1
answer
77
views
multisite multilingual over different directory
I have multi-site over directories.
xx and yy are made symbolic links are linked to same Drupal directory
domain.tld/xx
domain.tld/yy
And on .htaccess it requires to have different Rewritebase
...
1
vote
0
answers
634
views
Pass clean URL test with IIS and Ionic rewrite module
The IT department moved my drupal 6 site to a new server. It is IIS7 server with ISAPI Rewrite Module (Ionic).
My main problem is that the clean URLs do not work. I have set this up thousants of ...
1
vote
2
answers
61
views
Drupal Website showing only some images
I was told to migrate a Drupal website, but I've never worked with it before so I'm having some difficulties here. I'm trying to run the site in localhost/myfolder.
The URL generated for images is:
/...
1
vote
1
answer
377
views
Alternative to .htaccess compression with Boost
My hosting provider doesn't support mod_deflate directives in .htaccess to provide compressed HTTP responses.
I am using Drupal 7 with Boost and wish to compress HTML, CSS and JS responses.
Is there ...
1
vote
0
answers
684
views
Restoring a database breaks clean URLs
I am using Drupal 7 and the Backup & Migrate module to restore (or import) a Drupal installation that works fine on a different computer. When I run the import process everything seems to work ...
1
vote
0
answers
101
views
Migrate urls from Category/?EntityID=nodeid to Category/nodeid
i am migrating the articles from an old site that has url's in the
example.com/Economy/?EntityID=000018c5-8ded-4518-8690-4985cf051a4c format to drupal.
I have managed to get the Economy [...
0
votes
0
answers
441
views
Redirect to web folder
I'm trying to configure redirects on a Drupal site using Apache web server. I'm trying to implement what described in Remove /web part from a Composer based Drupal site, but I cannot get it to work. I ...
0
votes
0
answers
93
views
Conditional .htaccess rule for multisite sitemap.xml
We have multiple sites hosted with Domain access module. I was planning to host sitemap.xml files like web_root/zyx.com/sitemap.xml and web_root/abc.com/sitemap.xml.
I am using the following code.
...
0
votes
0
answers
54
views
rewrite for single PHP file
I'm asking in this forum because there are some specific Drupal 8 rules that might need to be applied.
I am looking for the correct way to add .htaccess rules that allow for:
domain.com/specific/ ...
0
votes
1
answer
324
views
HTTPS with and without www
I have drupal 8 based website implemented.
global $base_url; is used in two different modules.
Module-1:
$content .= $base_url .'/user/role/1';
it gives the URL pattern as:
https://www.example.com/...
0
votes
0
answers
28
views
Issue with installing theme via Admin Dashboard (.htaccess issue)
I am getting "Access denied. You are not authorized to access this page."
at "/admin/appearance/install?token=..." (Only this page alone) while trying to install a custom theme.
I am quiet certain ...
0
votes
0
answers
65
views
Struggling with Clean URLs
I am in the process of upgrading an old Drupal 6 site to Drupal 8.
I realize Drupal 6 is end of support but need to get the site working on my local Debian box, in order to work with it to get ...
0
votes
1
answer
183
views
redirection in htaccess file
I'm working on Drupal7.
I want to redirect all the URl's to external domain except some.
Below rewrite I have added in .htaccess file and its working fine.
RewriteCond %{REQUEST_URI} !/user.*$
...