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

learn more… | top users | synonyms

0
votes
0answers
4 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
23 views

.htaccess concatenating www + subdomain

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
4 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
19 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
30 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
22 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
26 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
52 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
51 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
53 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
30 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
24 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
15 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
323 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
53 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
60 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
36 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
38 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
104 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
95 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
39 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
83 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
88 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
142 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
117 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 ^ ...
1
vote
0answers
44 views

Clean URLs with mutlisite only with suffixes (sub folders)

I have a multisite install with drupal 7.32. This is only operating off sub folders and not sub domains. Clean urls works as expected on the default site. The .htaccess files is untouched. I've ...
0
votes
1answer
258 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
98 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
19 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
33 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
34 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
34 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
23 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
34 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
67 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
25 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
2answers
24 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
45 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 ...
0
votes
0answers
106 views

base url is not working for some link

I have configure a project in local like "localhost/myproject" and in settings.php set the base url as "localhost/myproject" in .htaccess i also set up "RewriteBase /srf" but for link base url is ...
1
vote
1answer
36 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 ...
0
votes
0answers
470 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." ...
0
votes
1answer
240 views

Drupal 7.27: 408 Request time out in Chrome browser [closed]

We are getting 408 request time out errors in Chrome browser only since the beginning of May. We have not been able to replicate the problem with any other browser. With one website we had a SSL ...
-1
votes
1answer
60 views

not show any picture in full html ,filtered html mode

when i upload or post a link image in article post or basic post not show anything but when i use the img tag and address show image!enter image description here
0
votes
1answer
67 views

Drupal extra subdomains for some special nodes

I have the following in mind and I'm not sure how to realize it nicely. Drupal 7 serves many nodes from several different taxonomies If I visit a taxonomy page e.g. ...
0
votes
1answer
170 views

Images under sites/default/files not appearing

I'm completely stuck on this one: I have images inside /sites/default/files/styles/medium/public/field/image, and I can't seem to see them in my browser, I have /sites permission set to 777 and I ...
-1
votes
3answers
59 views

How to remove ?= from url?

I am getting url example.com/?= and I want this example.com I have tried .htaccess method but nothing happened. I have also gone through may link like clean urls but nothing happened My clean URLs ...
0
votes
2answers
50 views

Rewrite rules for Development & Production Environments

I'm having trouble with the file path when I upload my development environment to the server. The problem is actually quite simple. Development is working on the root folder ( development.tld ) ...
0
votes
0answers
14 views

How to solve Security Review htaccess files directory issue [duplicate]

I run Security Review on Drupal 7.28 and get the "PHP files in the Drupal files directory can be executed" message. It says there might be something wrong with the .htaccess file in the Files ...