Sponsored Content
Full Discussion: Drupal 7 .htaccess issue
Top Forums Web Development Drupal 7 .htaccess issue Post 302906421 by gkelly1117 on Thursday 19th of June 2014 12:30:56 PM
Old 06-19-2014
Drupal 7 .htaccess issue

Good Afternoon my *nix friends.

I am having a issue with my Drupal site and the FilesMatch directive I use to deny access to certain core directories and files. SmilieSmilie

It seems that when I use the below code in my .htaccess file, my entire website throws a HTTP 500 error, which clearly is not the desire effect at all.

any input would be quite helpful, as I am getting stuck and frustrated.

Thanks!


Code:
<FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(\..*|Entries.*|Repository|Root|Tag|Template)$">
 Order allow,deny
 Deny from all
</FilesMatch>

 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

.htaccess?

For a schoolproject, I have to set up an intranet at a company headquarters in the Netherlands. But they want to give the division in the United States access to that intranet. I have to find out how to do that. I've heard that you can do that by giving certain people access to the intranet with... (1 Reply)
Discussion started by: Puc conDoin
1 Replies

2. UNIX for Dummies Questions & Answers

.htaccess

i want to protect a folder on my HP.... does the folder need more than ".htaccess" and ".htpasswd" to be protected , and ask for login and password??? Please help ...... i use HTAdmin 1.2.1 to manage my access files.. The systemadmin cant or wount answer.....:confused: Avenger (3 Replies)
Discussion started by: Avenger
3 Replies

3. Cybersecurity

htaccess

Something is wrong. I do everything right make the .htaccess file and stuff, but when I try the htpasswd command it says command not found. I use Putty SSH client and I think server is running RedHat 7.1 with Apache some version. HELP!!! (1 Reply)
Discussion started by: _hp_
1 Replies

4. Cybersecurity

Logging htaccess

hi i am trying to make a log of all users who access my website, i am using htaccess to administrate logins, how does htaccess store a session i.e where is the valid user login temporarily stored while a user is using the site or is there already some sort of logging being done by htaccess. ... (2 Replies)
Discussion started by: omnibarb
2 Replies

5. UNIX for Advanced & Expert Users

.htaccess redirect with masking

I am looking to forward the following with masking via my .htaccess file: www.mywebsite.com/origpage www.mywebsite.com/newpage I do not want to forward the entire site, just this one page with masking. Neither page has an extension. I am able to forward with .htaccess - but it does not mask the... (1 Reply)
Discussion started by: globalnerds
1 Replies

6. UNIX for Advanced & Expert Users

Redirect with htaccess

Hi, I would like to use htaccess 301 redirect with URL hiding. Ex: when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Discussion started by: chandranjoy
0 Replies

7. Web Development

.htaccess redirect with #

I have the following directive in my .htaccess: #RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh" The problem is that the redirect is going to http://www.seobook.com/%23a_aid=dh How to preserve the # when redirecting? (2 Replies)
Discussion started by: rlopes
2 Replies
DH-MAKE-DRUPAL(1)						   User Commands						 DH-MAKE-DRUPAL(1)

NAME
dh-make-drupal - Builds a Debian package for the requested Drupal project DESCRIPTION
The purpose of this program is to generate Debian packages for any Drupal projects (that is, modules, themes or translations) - Please note note that as of October 2010 the infrastructure for publishing translations has changed, so its current support status through this program is suboptimal Given that Drupal developers publish their work through the main Drupal site (http://drupal.org), this program fetches the information for the latest available versions (for the right Drupal release, and with the specified stability level), and prepares a Debian package from it. This Debian package can be locally installed using 'dpkg', or uploaded to your Apt repository. Keep in mind that this package only goes as far as it can, being an automated tool. The generated packages will probably require verifica- tion/tweaking to be of production quality. This program has been inspired -and named in a similar fashion to- Debian's pkg-perl group's dh-make-perl. -v, --version -h, --help Display this screen -d, --drupal-version VERSION Drupal version -r, --report-only Check only for project availability, don't download or perform any other actions locally. Implies -D. -f, --force Proceed even if this will overwrite currently existing files --debug LEVEL Debug level for generated messages (0=highest, 5=lowest) -s, --min-status STATUS Minimum status to consider for packaging. Accepted values: 'recommended', 'supported', 'developer'. Defaults to recommended. -D, --dont-debianize Do not attempt to debianize the project, only download the tarball -b, --no-build Prepare the debianized directory, but omit the actual package build process. This option is incompatible with either -D and -r. -R, --no-recommends Omits the generation of the Recommends: line, which is built by scanning of submodule-provided .info files and may be misleading or introducing too much noise --build-switches SWITCHES Switches to pass to dpkg-buildpackage. Defaults to "-us -uc" (do not sign the generated package). In order not to give any switches, specify an empty quoted string (i.e. --build-switches=''). -t, --tarball FILE Use the specified tarball as the original project tar.gz, don't look for any other available versions and don't download from the Drupal website. This will require you also to provide a project version number with -V and the project type with -T -T, --proj-type TYPE Type of project we are packaging. This option is only meaningful when working on a local tarball (-t), and will be ignored other- wise. Accepted values: %s. Defaults to ["Modules", "Themes", "Translations"]. -V, --proj_version VERSION Provide a project version number. This option is only meaningful when working on a local tarball (-t), and will be ignored otherwise -m, --mangle-version PATTERN Debian versioning logic includes the ??~?? character meaning ??anything below?? the preceding version number. This is most useful when dealing with pre-release qualificators (in order, 1.x-dev, 1.0-alpha1, 1.0-beta, 1.0rc3). dh-make-drupal will try to recognize such patterns and mangle them so they sort correctly in Debian (and so that when a stable version is released it appears as higher - For the above mentioned version numbers, they would result in 1~~dev, 1.0~alpha1, 1.0~beta, 1.0~rc3). You can use this switch to tell dh-make-drupal to omit this mangling. AUTHOR
Written by Gunnar Wolf <gwolf@gwolf.org> COPYRIGHT
Copyright ?? 2009-2012 Gunnar Wolf Instituto de Investigaciones Econ??micas, UNAM This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. dh-make-drupal version 1.3 June 2013 DH-MAKE-DRUPAL(1)
All times are GMT -4. The time now is 12:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy