Tagged Questions

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

learn more… | top users | synonyms

0
votes
2answers
27 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
42 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
28 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
36 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
18 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
46 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
35 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
15 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
21 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
15 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
21 views

Drupal installation not working/ what is .htaccess

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
19 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
26 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
38 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
17 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
18 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
33 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
29 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
60 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
19 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
206 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
148 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
40 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
41 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
102 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
52 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
43 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
11 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 ...
0
votes
1answer
121 views

Can I rename index.php?

I am going to replace the front page of a Drupal 6 site with a new index.php. How can I rename the Drupal 6 index.php (say, to drupal.php) and keep the Drupal site functions working? For example, I'd ...
0
votes
3answers
501 views

Upgrading from 7.22 to 7.28, htaccess file in /tmp [duplicate]

I get this error : My .htaccess file in that directory looks like this now (I copied it from the url): # Turn off all options we don't need. Deny All Options None Options +FollowSymLinks # Set ...
0
votes
1answer
89 views

Redirecting Views dynamically generated URL's via .htaccess RewriteRule - CSS stylehseets arent loading after change

I have many dynamically generated pages via views and it seems the easiest way to redirect them is using the .htaccess file via a RewriteRule. I put in the following right above the index.php ...
0
votes
4answers
141 views

Clean URLs on multisite; Clean URL test fails but unable to enable it

Clean URL test fails but unable to enable it. Here is my configuration files. I am able to access the page via example.com/admin/config/search/clean-urls as well as ...
0
votes
1answer
24 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 ...
0
votes
1answer
137 views

Drupal 7 Migration - redirect old dynamic urls to new domain name

I just cloned a drupal 7 site to another domain name. Now i want to only redirect some of the URLS from the old site to the new site. Problem is that I have many (300+) dynamically generated URLs via ...
0
votes
2answers
115 views

Does Drupal override php setting by it self by .htaccess?

When I migrate or restore a Drupal 6 site Always php version I have set in the account page of the shared hosting service has been automatically changed. For example, though I have set php 5.3 for ...
0
votes
1answer
163 views

Upgrading to 7.26 - Internal Server Error

I recently upgraded from Drupal 7.25 to 7.26 in maintenance mode. The upgrading did not have any errors. Now when I go to the homepage I get an Internal Server Error. I added an echo statement to ...
0
votes
1answer
49 views

Single site with multiple user interfaces based on path and role

I'm currently working on a Drupal project that requires 3 separate interfaces. Administrative users login to the site and all of the pages associated with their specific role start with a particular ...
1
vote
1answer
370 views

7 Increase the “Expires” header

I am trying to optimize a Drupal 7 site. I noticed the Expires header is set to just 6 hours, although according to my .htaccess file, it should be 2 weeks. Then i found out mod_expires module is not ...
0
votes
1answer
47 views

How to move drupal into a subdirectory so non-drupal content works in the original folder?

I have a D7 site and then a lot of other non-drupal stuff I would like to keep in my joe/ folder on our server as joe/thing1/ joe/thing2/ etc. Right now, my folder joe/ just has the drupal ...
2
votes
1answer
2k views

Adding .htaccess within httpd.conf correctly

I am looking for advice on the correct way to place my .htaccess settings within my httpd.conf. Here is the server httpd.conf with the htaccess placed within a directory as per most instructions I ...
0
votes
0answers
65 views

localhost multisite redirect [drupal 7]

I have multisite website with multiple languages, I have this site in localhost, my problem is: when I attempt to load any page of a other language different from the default one (english) it redirect ...
0
votes
1answer
68 views

How do I use .htaccess to trigger mod_rewrites before D7's Clean URLs take over?

I am migrating from olddjango.com to newdrupal.com, and need a way to alter the URLs from the old style into the a format we've chosen for the new Drupal application. In addition to rewriting them, I ...
1
vote
0answers
152 views

Pass cleanURL test with IIS and Ionic rewrite module with Drupal 6

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 ...
0
votes
1answer
46 views

Problems with Clean URLs

I've got a problem with Clean URLs. I had a look around and my problem doesn't look like any thing else on this site or anywhere on the internet. I have a .htaccess file. It's there and it's working. ...
1
vote
2answers
319 views

how to create file programmatically only login users download it

I want to create file programmatically ,I want only authenticated user can download it and direct access return 403 to them, I search and saw How Can I Make File Downloads Available Only to ...
-1
votes
2answers
50 views

Bad url redirection [closed]

If the user types a bad URL they will be taken to our homepage. for example : www.pardee.du.edu/badURL will take the user to http://pardee.du.edu
0
votes
1answer
415 views

Per site htaccess with multisite

In short: Can I have a separate .htaccess file per site on a multi-site installation? I've read quite a lot of conflicting stuff about this, including some which suggests you can put a .htaccess file ...
1
vote
2answers
169 views

Can a node be accessible only by ajax?

I'm using the ajax_links_api module to "ajaxify" a certain menu. When a menu button is clicked, the corresponding node loads into a specified div via ajax. This works well. The problem is that the ...
0
votes
0answers
403 views

htaccess to web.config conversion

I'm having problems converting my .htaccess file to a web.config file for my production server. When I loaded my .htaccess file in the IIS URL Rewrite Module, this was the result: <rewrite> ...
0
votes
0answers
488 views

.htaccess tweak to get access to /sites/default/files

I would like to upload some files onto my drupal website like audio/video for promotion. However, the .htaccess file in sites/default/files will not allow me. If I remove this file, it works but ...