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

learn more… | top users | synonyms

0
votes
1answer
24 views

How to add custom RewriteRule in .htaccess

I have a website which some one else has built using Drupal Database API (nothing else from Drupal has been used). With the RewriteRule added to the .htaccess file which is in the root folder, the ...
0
votes
0answers
12 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
11 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
11 views

Redirects in .htaccess file do not work from brays-ingles.com to brays.es (both hosted on same host provider)

I have two domains on OVH. One is brays-ingles.com and the other is brays.es. brays-ingles.com is my old site and I have many pages indexed on Google and other search engines. At the moment all of ...
0
votes
0answers
16 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
24 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
26 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
15 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
75 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
75 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
29 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
23 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
47 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
46 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
30 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
70 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
406 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
73 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
114 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
20 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
66 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
72 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
98 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
28 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
181 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
36 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
1k 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
57 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
63 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
81 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
41 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
287 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
46 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
242 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
150 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
289 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
287 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
76 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
336 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
90 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
53 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
3answers
143 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
293 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
45 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
490 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
46 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
96 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
271 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
168 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: ...