Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
0answers
5 views

Ganglia private page

I have read the Ganglia documentation about authorization systems (https://github.com/ganglia/ganglia-web/wiki/Authorization-System). I would like to restrict all access to the page via htaccess so ...
0
votes
1answer
15 views

How to hide main domain in Shared Hosting account [on hold]

I have an economy hosting plan with godaddy that allows me to host additional domains. For example, if my main domain is example.com, I can create a folder at example.com/newdomain and point ...
-1
votes
0answers
8 views

Hosting htaccess Subfolder to Domain [closed]

I get a simple hosting plan with a few domains. Now I create a subdomain like sub.domnain.com. Now I select the folder which should be the root for the domain. If I do that I get following domain ...
1
vote
1answer
18 views

Redirect rules for .htaccess with mod_rewrite

I have a PHP script dynamically generating content from a database based on queries. The user might do a search from a text box for the username "mark". The content is provided by PHP at ...
1
vote
0answers
15 views

How To Stop Apache Logging Client Denied By Server Errors [duplicate]

I get an annoying amount of spam traffic from the Ukrane, Russia, Korea etc. I have setup rules in my .htaccess file to block all of these countries and it's working great. The problem i have now is ...
0
votes
0answers
25 views

Converting NGINX to apache rewrite rules

Currently I am doing a project setup in my local(Apache) whichi is in NGINX. I am facing trouble in converting the rules from NGINX to .htaccess rules. Can some one help me out in converting the ...
0
votes
0answers
4 views

Parallels Plesk Apache dedicated server shared IP / A Address serving default page [migrated]

My Website Works when you go to it, however Google Adwords is telling me that my site is redirecting/ not showing up properly to their bots. When you put the site into a website checker like GT ...
1
vote
2answers
43 views

How to block Ip in .httaccess on Apache 2.4

I've upgraded Apache 2.4 and would like to block an Ip this could be done by using the following in the .httaccess on Apache 2.2 Order Deny,Allow Deny from 50.62.136.183 However how can I achieve ...
0
votes
1answer
20 views

Some mod_rewrite syntax clarification

We inherited some code recently and I'm reviewing the .htaccess file of one of the sites. I understand what the end result of most of the rewrite rule sets are, I'm just unsure of some of the syntax. ...
0
votes
1answer
19 views

Convert htaccess rewrite rule

I want to convert this to nginx rules # BEGIN EAP Rewrite <IfModule mod_rewrite.c> RewriteEngine on Options -Multiviews RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f ...
1
vote
1answer
28 views

htaccess rule to rewrite %3F to ? and %3D to =

I need to rewrite the URL of my site which contains %3F to ? and %3D to = I have tried this rule: RewriteCond %{HTTP_HOST} myhostname RewriteRule ^(.*)%3F(.+)%3D(.+)$ $1?$2=$3 [L,R=301] ...
-1
votes
1answer
41 views

Block all bots from .ru domains via robots.txt or htaccess? [closed]

Is there any way to write rules for robots.txt or htaccess that will block all bots that come from a .ru domain? Thanks
0
votes
0answers
16 views

Combine modrewrite condition to avoid double redirects

There are two modrewrite directives in my htaccess file. One is redirecting uppercase URLs into lowercase. The other one is redirecting http and www requests to https and none www. #Redirects ...
-1
votes
1answer
32 views

apache 2.2 order deny allow not working

this is driving me nuts. In a web server running httpd-2.2.15-45.el6.centos.x86_64 any type of does not seem to be honored. Example: <VirtualHost 192.168.10.10:80> ServerName ...
1
vote
1answer
17 views

How to execute script before Apache basic auth?

I need to protect some location with htpasswd and that is working ok with: <Location /myloc> AuthType Basic AuthName "My Protected Area" AuthUserFile .htpasswd Require ...
0
votes
0answers
24 views

Does domain pointer overrule .htaccess redirect from country tld to .eu tld or is there workaround?

I've been trying to redirect with a .htaccess file but its not working. Now I think I know why, just need a second opinion. I have domain pointers set from a .nl domain and a .lv domain to point to ...
0
votes
0answers
17 views

Apache ErrorDocument fails for subdirectories

I'm using the following in an .htaccess file to allow only traffic from my ip, i.e. put the site in maintanence mode. ErrorDocument 403 /maintenance.html Order Allow,Deny Allow from 11.22.33.44 It ...
-1
votes
0answers
12 views

301 redirect not working as expected [duplicate]

i've set some redirects in my htaccess file, this is what i got so far: RewriteEngine On Options +FollowSymLinks Redirect 301 /products http://www.newdomain.com/sm/folder/ the old ...
1
vote
1answer
33 views

Authorization Required! – 401

We have a weird problem and we can't figure out what's causing the issue. Randomly, some of our visitors get the following error: Authorization Required! – 401. This server could not verify that ...
-1
votes
0answers
8 views

I need a .htaccess RewriteRule that converts a query to a directory structure [duplicate]

I need this: http://website.com/page/request.php?id=1 To look like this: http://website.com/page/1 Ive already tried this but it does not work. RewriteRule ^=([^/d]+)$ request.php?id=$1
0
votes
1answer
20 views

Apache keeps returning 500

(Im working with Apache/2.4.10 on Windows 7 (64 Bit) ) I have a directory "test" in my document root with several files on my local apache: test |____.htaccess |____.htpasswd |____admin.php ...
1
vote
1answer
15 views

How can I force mod_rewrite to send user info component of a URI?

A colleague recommended I repost this from StackOverflow to ServerFault: This has been driving me crazy. I have a web application that's being served via Apache Web Server. The database server that ...
-2
votes
1answer
29 views

Equivalent of .htaccess in NGINX

I have the following .htaccess file. I am trying to configure this on NGINX with no luck. .htaccess RewriteEngine On RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond ...
0
votes
0answers
12 views

Can't redirect HTTP to HTTPS for subdirectory [duplicate]

The following code (in my root level .htaccess file) should redirect http://www.pillerdesigns.com/iwp/ to https://www.pillerdesigns.com/iwp/ (non-SSL to SSL): RewriteCond %{HTTPS} off RewriteCond $1 ...
1
vote
1answer
50 views

Redirect IP to a domain name using htaccess

Let's say I have this IP Address 11.12.13.14 and the domain example.com. Now what I want is to redirect the user from IP Address to domain name (but without changing the domain name to address bar). ...
2
votes
1answer
75 views
+100

Apache security - list all possible handlers / actions

To ensure there aren't security weaknesses that can be exploited via .htaccess, how can we see all possible handlers that Apache can use via directives like SetHanlder and AddHandler. I know I can ...
0
votes
0answers
12 views

Set 1 cookie on 2 different subdomains

I am trying to get one cookie to work with 2 domains. Currently using an agreement page once a users first views the website that it will come up and they have to accept the ToS to continue, however ...
-1
votes
1answer
22 views

how should I 301 redirect https address to http address?

I have recently moved my website to a new domain. The previous domain had SSL installed and it was https://example.com. My new domain is http://newexample.com and It doesn't have SSL on it. I used ...
0
votes
0answers
23 views

Combining .htaccess with http.conf to set https and direct all routes to index.php

I'm sure this question has been asked before, and I have tried to understand many of the answers given, however none of them seem to work with my particular set up. If the question can be answered ...
0
votes
0answers
40 views

404 Not Found or 500 internal server error using nginx try_files configuration

I'm trying to move my project from Apache to nginx. I use WT-NMP. I'm converting .htaccess to nginx configuration by adding this in nginx.conf. location / { try_files $uri $uri/ /index.php/$args; ...
-1
votes
1answer
64 views

Laravel: default route will render but others will not. Ubuntu/14.04 / Apache2 configuration issues? Not sure what I am doing wrong

Laravel will render the default / root page normally. but will not render default routes or error pages. My web browser will return with Apache (NOT Laravel) error pages with I try and access /test ...
0
votes
0answers
14 views

htaccess redirect with regular expression [duplicate]

Some redundant pages are being created in the website. Eg, archives/volume41/number21/calls- archives/volume52/number19/calls- archives/volume66/number7/calls- archives/volume70/calls- ...
0
votes
0answers
75 views

Apache Header Module Loaded but can't set headers in htaccess

I have Apache 2.2.29 (unix) setup and running on my new dev machine (mac). I am trying to set CORS headers for an API project - something that I have done many times. The htaccess file for the ...
0
votes
2answers
195 views

Setting Access-Control-Allow-Origin in .htaccess for Https protocol

I have a site with http and https. I set in the .htaccess the following line which runs for http. Header set Access-Control-Allow-Origin "*" But with https I get this error. No ...
0
votes
0answers
12 views

Apache2 as ReverseProxy Using htaccess; Limit acces to subdirectory with different user than to root folder

I have a WebApplication behind a Apache2.2, which is used as a reverse proxy. Now I want to limit access to the root folder of the application and to the subfolder docs. However I need different users ...
0
votes
1answer
54 views

htaccess - redirect non https & set different default page for each sub-domain [duplicate]

I have a wild card ssl for my domain. I have many subdomains each with its own default page. www.domain.com/main.html     [/home/domain/main.html] ...
0
votes
1answer
43 views

apache mod_rewrite rule not working [duplicate]

I'm testing the rule below else where and it's working but on my system it's not (centos 7, Apache/2.4.6) [I changed my domain to domain.com for the post here] the purpose of the rule is to rewrite ...
0
votes
1answer
34 views

filename repetition unwanted but from Apache 2.2 .htaccess RedirectPermanent

On Apache httpd 2.2, my .htaccess is failing when I RedirectPermanent to a file within a subdirectory, but it's fine if the destination file is at the website's root level or is the ...
-1
votes
1answer
48 views

website uses an invalid security certificate

I have website on ubuntu with apache server. Domain is from godaddy. When I type example.com it's running file under SSL (with https). But, for www.example.com it's giving me below error. ...
-2
votes
1answer
27 views

htaccess without redirect HTTP & HTTPS non-www to HTTPS www

i have SEO problem for http to https and non-www to https://www Please help me how to solve this problem? this is my htaccess code: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond ...
1
vote
2answers
79 views

CentOS - Apache HTTPS not reading htaccess

I have been stuck with an issue with rewrite on apache on CentOS. If I load my site from HTTP, it works fine. Rewrite rules work. Once I change it to HTTPS, the rewrite rules don't work. After some ...
0
votes
2answers
44 views

Apache access control not behaving as expected

I have a static HTML website that being served by Apache 2.4 using SSI. I have been using basic authentication to control access to a subset of files and it has stopped behaving as expected. ...
0
votes
1answer
223 views

how to remove .php extension using htaccess on godaddy linux hosting

How to remove .php extension using htaccess file. I have tried many codes (which I found on internet but not got success. An Internal server error is regularly showing. I am using Godaddy Linux ...
0
votes
0answers
26 views

Subdomain only read the index file

This is the structure of the directory: +example.com +public_html +assets //assets directory of example (css,js,img) -index.html //the index file for example +subdomain ...
0
votes
1answer
20 views

Redirect all vhosts when a certain condition is true

I am trying to redirect all vhosts to a certain url based on the REQUEST_URI. For example if somebody makes a request to www.something.com/condition on my server to be redirected to google.com I ...
0
votes
0answers
11 views

Exclude 1 file from htpasswd in httpd.conf [duplicate]

I'm running a development server that's currently protected by .htpasswd pre launch, it's setup okay but I've tried to un password protect 1 file http://thesite.com/roost_manifest.json in the public ...
0
votes
0answers
42 views

Password protect folder and allow all subfolders (apache)

I'm trying to password protect one folder on my web site using an .htaccess file with an .htpasswd file. It works and I get it to password protect it. Can I add something to my folders .htaccess file ...
0
votes
0answers
26 views

SetEnvIf Work on Local But Not on Live

I'm trying to set a variable MAGE_RUN_CODE for Magento in .htaccess depending on the domain name. I have the following on my local MAMP installation, and it is working as I'd like. I have two sites: ...
1
vote
1answer
33 views

Redirect Webmail traffic through port 80?

I have set up a website on BlueHost (shared server) and I have set up webmail in a subdirectory. But every time I use the url mywebsite.com/webmail, it gets rerouted to mywebsite.com:2095 which ...
0
votes
0answers
10 views

Denying access to autogenerated file in Apache and Magnolia

I have several virtualHosts in a machine with magnolia working on it. Magnolia auto-generate a sitemap's file so I'm trying to deny its access with Apache 2.4 I've tried this: <FilesMatch ...