htaccess

kairosmix's picture

Search not working properly Only First Word in a search is passed

I have a weird problem. I am using a multi-site installation. I inherited the setup and while I think the problem is in the setup, I am perplexed. The .htaccess file has 4 sites in the form:

RewriteCond %{SERVER_NAME} ^mysite.mysite1.domain.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ http://mysite.mysite1.domain.com/index.php?q=$1 [P,L,QSA]

I am using Virtual hosts and that conf is:

ServerName mysite.mysite1.domain.com

Read more
glass.dimly's picture

New Handbook page: How to preserve old URLs during Drupal to Drupal migration by preserving nids and using mod_rewrite

Here it is: http://drupal.org/node/570906

Let me know if there are any grievous errors.

-glass.dimly

gallamine's picture

How to set up a cron job on a site that's protected with .htaccess/.htpasswd?

Howdy,

I'm trying to set up a cron job to run my cron.php file every hour. I've read through the docs on cron on Drupal.org (http://drupal.org/cron), and I tried executing the following commands, just to test:

wget -O - -q -t 1 http://www.example.com/cron.php

OR
curl --compressed http://example.com/cron.php

The problem is is that I have a .htpasswd file on my site that restricts access, and curl and wget can't get to the page.
So, is there an easy way of allowing them to access the cron.php files?

Read more
Peter-gdo's picture

Using .htaccess Options Indexes versus WebFM versus an index.php for Direction Listings

I've run into the problem of letting authenicated users access /sites/default/files/folder1/folder2 and see a full directory listing. Typically I solve this with htaccess (Options Indexes, IndexOptions +ScanHTMLTitles -IconsAreLinks FancyIndexing and other values). However, I see that Drupal's webroot/.htaccess does not play nicely.

Read more
cdragin's picture

need help with redirects

I posted this issue on the drupal forums but alas, have not gotten any response. Hopefully some of you local folks can help out.

I recently moved my site from a /drupal subdirectory to the site root. Using cPanel's "redirect" dialog, I redirected mysite.com/drupal ==> mysite.com. I also set a wildcard so that, for example, mysite.com/drupal/news would redirect to mysite.com/news. In addition, I set some redirects for pages from the former site to the equivalent pages on the new site, e.g., mysite.com/hire.php ==> mysite.com/jobs.

Read more
demon326's picture

phpbb module htaccess conflicts with image cache module

Hello Arkepp, i just found a little conflict with the phpbb module htacces file and imagecache...when the htaccess is enabled it does not generate thumbsnails and does not display them lik they need to be..

when i Disable the htaccess file its all working like it has to be :), i found this problem after using google for more then a houre and found a rss feed frome this site..,so is there something that can fix it ?

JohnForsythe's picture

Blocking spambots with .htaccess

I just wrote an article about using htaccess to block spambots and scrapers, thought it might be good to post here. In the article, I go over how to block access by user-agent, referrer, IP address, and a few other things.

Subscribe with RSS Syndicate content