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

learn more… | top users | synonyms

0
votes
2answers
8 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 ...
-2
votes
0answers
19 views

htaccess 300 redirect to https with www

Recently I have enforced my all pages from http to https thanks to cloudflare ssl. However it's not 300 redirect exactly. It's redirecting to my main index page. How can I add 300 redirect with ...
0
votes
0answers
26 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
41 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
56 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 ...
1
vote
2answers
21 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
36 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
50 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
44 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
64 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
19 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
79 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
71 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
16 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
24 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
26 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
20 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
29 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
44 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
20 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
20 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
35 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
69 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
24 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
255 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
184 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
43 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
51 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
123 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
55 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
45 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
13 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
142 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
526 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
152 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
26 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
165 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
123 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
197 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
55 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
426 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
48 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
67 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
73 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
179 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
48 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. ...