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

learn more… | top users | synonyms

-1
votes
1answer
36 views

Can .htaccess cause broken images after deployment?

I have a Drupal 7 website that works fine from my localhost. When I deployed the site to my hosting provider, none of the images are shown. I suspect that my .htaccess filess are the problem. These ...
0
votes
2answers
38 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
46 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
18 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
36 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
26 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
131 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
38 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
41 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
34 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
24 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
150 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
33 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
49 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
115 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
112 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
72 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 ...
0
votes
1answer
46 views

Multisite domain not working without symlink

I used to have to work with my own custom *.conf file in order to get my multi-site to work off a non root install of drupal but now have moved it to root ,I don't need that file anymore as system ...
0
votes
2answers
118 views

Visiting admin pages return 404 (page not found error) after transfer website

I have transferred my website from another hosting . Front showing fine but if we click on link it will page not found error ..admin also not showing so how i control my website..i checked .Htacces as ...
1
vote
1answer
63 views

Advagg Cache-Control > 1 year [closed]

I am trying to use Advagg module. All's ok, but unshit.com states that all its css and js files Cache-Control is set more that a year. In .htaccess # Requires mod_expires to be enabled. # Turn on ...
0
votes
0answers
39 views

Modify Urls to look clean for a referral system

Trying to build referral urls which will be shared by users on site and other users will access those links and will visit to site and some points will be awarded to the user who shared the link. So I ...
0
votes
2answers
90 views

Enabling Clean URLs on website-in-progress

I host my site and a few others through Hostgator. When I build a new Drupal site as a replacement for an existing site at a different host, I build it on the IP address (192.xxx.xxx.xxx/~username) or ...
0
votes
1answer
150 views

preventing access to php files using htaccess doesnot allow ajax to use php files [closed]

i am using the following code in .htaccess to prevent access to php files from the browser <Files ~ "\.php"> Order allow,deny Deny from all </Files> the problem whit that is that when i ...
0
votes
0answers
43 views

My site is redirecting incorrectly

I can't seem to find the cause, but here is a short version of what has happened. Our site is hosted on GoDaddy.com, we had Drupal 6.27 manually installed, I accidentally "installed" Drupal, which ...
6
votes
1answer
373 views

How to place Drupal_Security_Do_Not_Remove_See_SA_* into httpd.conf instead of .htaccess

I run several Drupal 7 installations on a dedicated server with CentOS 6.4 and Apache 2 (the package httpd-2.2.15-29.el6.centos.x86_64). I wonder, how to properly configure the ...
0
votes
0answers
34 views

Drush Install Issue, Page Not Found for all pages except home page

I ran the following to install drupal 7: drush site-install standard --account-name=admin --account-pass=admin --db url=mysql://YourMySQLUser:RandomPassword@localhost/YourMySQLDatabase I accessed ...
0
votes
0answers
84 views

Replacing an .htaccess and .htgroups-based access control system

I'm new to Drupal and in the exploratory phase of rebooting our organization's static-html website with Drupal 7. Portions of our website are for 'members only' and can be viewed only by employees ...
0
votes
2answers
224 views

Simple Apache Redirect not working in Drupal .htaccess file

I migrated a site from a custom built php site (with file types in the urls) to a Drupal site recently. I want to preserve the old url (because they are indexed on search engines) and redirect to the ...
0
votes
1answer
124 views

Moving drupal site to the root of the server

I have finished my drupal site and about to launch it in the end. Now everything is in a subdirectory called www.mysite.com/drupal_test, to do that, I had to change one line in the .htaccess file: ...
1
vote
1answer
228 views

Expiration date for static files

I don't understand the following: In Drupal 7's default .htaccess file the Apache module mod_expires is ordered to let files without a .php extension expire after two weeks. How is web development ...
1
vote
3answers
2k views

.htaccess: Options not allowed here

I just moved a new drupal site onto a directory '/drupal_test' under my current site. So that I can test it while my current site is still running. When I go to the directory ...
0
votes
1answer
50 views

Where should I place .htaccess to take effect in a particular site?

We have an Apache web server that contains several Drupal 7 installations. Where should I place a .htaccess file in order for its contents to take effect on a particular website? I tried putting it ...
0
votes
1answer
105 views

Multisite Installation (Attempt) Goes To My Main Site

I am attempting to perform a multisite installation. My main (presently working) site is located in a subdirectory called "beta" of my ~/public_html folder. This is the site for jackstahlco.com and it ...
0
votes
0answers
180 views

Site shows an empty page and a 500 internal error

My site doesn't show any page except an empty page. I changed the .htaccess file, but the sites shows a 500 server error. What can I do? The server log just shows the following line: [Tue Aug 27 ...
0
votes
1answer
39 views

CleanURL issues even after disabling it

So I recently transferred my site to a new server and disabled cleanURLs because of facing many errors. But due to this, I'm facing multiple issues: Sometimes (not all the time)- when I save a form ...
2
votes
1answer
719 views

Drupal 7 .htaccess redirects

I'm trying to redirect some old urls to the new Drupal ones with .htaccess rules. This works Redirect 301 /oldurl http://mysite.com/new-url But this gives me a Drupal error Redirect ...
0
votes
1answer
78 views

Handle file requests

I'd like to be able to intercept calls to files (.pdf for instance) in order to run some custom code before the user accesses/downloads the file, and add a cover page accordingly. From what I ...
0
votes
0answers
73 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
1answer
146 views

Bypassing Drupal's htaccess rewrite for static page

I've created a site that is currently partly static while partly managed in Drupal. I've managed to rewrite static HTML by specifying the /static directory in the following manner above Drupal's ...
0
votes
1answer
21 views

How would files be uploaded to a 2nd domain?

So I have a Drupal site on my company intranet, and when uploading files, it all goes to the default/files folder as normal, however when uploading video files specifically, the base url is different ...
1
vote
1answer
255 views

https and .htaccess

I'm running around in circles trying to get to the bottom of this problem, so hoping someone can help. In my module, I have the following in hook_menu(): <?php $items['test'] = array( ...
1
vote
2answers
869 views

Clean URLs not working, I can't log in to Admin Panel

I just moved my drupal website to another host. But I am unable to login as mysite.com/user. It gives me a 404 not found error which means clean urls are not working afaik. So, I checked PHP ...
0
votes
0answers
73 views

MAMP multi-installs of Drupal, can't login

I know this is probably something super simple, but it's one of those days... I have MAMP set up on my computer so that I can have several local Drupal installs. I have one in a folder called d7 and ...
2
votes
3answers
579 views

Drupal does rewrite url but can't load css/themes

I have an url rewriting issue with my drupal 7 I'm trying to rewrite for example index.php?q=categorie&categorie=laars to categorie/laars.html So I downloaded the default drupal 7 .htaccess file ...
2
votes
1answer
136 views

Url mapping from custom CMS to Drupal

We migrated a site from custom CMS to Drupal. The content has been migrated successfully, but there is a problem with URL mapping. In old site the URLs were like ...
0
votes
0answers
254 views

Redirect users based on browser language with .htaccess

Let's say my drupal website is located at http://sub.domain.com/subfolder/subfolder2/ and I want to redirect the users to the right language prefix based on their browser language. So if the user's ...
-3
votes
1answer
77 views

What advantages / disadvantages is there adding a 'www' prefix to your domain name? [closed]

currently i am replicating my site and my .htaccess file has www redirection prefix enabled, but if im copying this to my local, it will prefix my site with www.localhost. I was wondering would it be ...
0
votes
2answers
468 views

Drupal 7 Clean URLs and Image Upload

I am currently having problems with uploading images and using clean urls on my website. File permissions are working correctly. When I upload an image to an article page and then I click refresh to ...
0
votes
0answers
131 views

sub folder and clean urls

I have a rather unique issue, and if I missed the answer in the threads please direct me to them. I have drupal (7) installed in a sub-folder in document root as so : /var/www/drupaldev and I ...
1
vote
1answer
472 views

Clean URL/.htaccess problems with multiple subdirectories

I've inherited a large Drupal web site and now we're updating from Drupal 6 to Drupal 7. I cannot enable CleanURL for more than one subdirectory at a time! I think I've read just about every article ...