Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
1answer
20 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
73 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
19 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 ...
-1
votes
0answers
8 views

htaccess rewrite rule to rename image [duplicate]

I will create a SEO-Friendly Picture Name but use a static filename in background. Maybee I do something wrong because I got 404 error. I will call: http://static.mss.de/images/test/frosch_1_1.jpg ...
0
votes
1answer
16 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
19 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
9 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
14 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
7 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 ...
0
votes
1answer
17 views

htaccess rewriting same page names conflict

My htaccess file has the following two lines RewriteRule ^payment payment.php RewriteRule ^payment-confirmed payment-confirmed.php When trying to access payment-confirmed.php it just goes to ...
0
votes
0answers
7 views

Redirect 2 different domains to 2 different directory + .htaccess [duplicate]

Here is my directory structure: root root/exampleA root/exampleB How to redirect example.com/A to exampleA directory and redirect the rest of urls to exampleB.com
0
votes
1answer
40 views

AH01630: client denied by server configuration Apache

I get this error when trying to access localhost via a browser. 403 Forbidden I use Ubuntu 14.04 LTS Here is my configuration file: etc/apache2.conf # This is the main Apache server ...
0
votes
1answer
11 views

If mod_expires is used in .htaccess will modified files be downloaded by the client

I'm trying to employ caching to speed up the response time of a website. Most of the documentation I have read suggests setting expiration to +1 month from time of access as follows: ExpiresActive On ...
0
votes
1answer
28 views

“deny all” for all files in a directory

My server is getting hit hard by bots, etc., looking for various files in /cgi-bin/, like search.cgi, YaBB.pl, gitweb.perl, perl, gitweb.pl, htsearch, and on and on. I want to deny all access (send a ...
0
votes
1answer
8 views

Failure htaccess regax

I'm trying to get all request to the server to go to the index.php file with the request information. Also, I want to prevent accessing the index.php file directly. The second part works fine but I ...
0
votes
1answer
22 views

Allow Parent .htaccess to redirect all assets

We're migrating from one subdomain to another. This particular domain has a subset of several websites. I've setup the following rewrite to handle the redirect globally: In docroot/.htaccess ("Rule ...
0
votes
1answer
35 views

(VPS Cloud) Site goes down, htacces modified, i think due to high traffic [closed]

i have a cloud vps at ovh having 8GB of ram, a 6 vCores processor and installed Parallels Plesk 12 on Ubuntu 14.04 (64 bits) I have more than 10 sites in there but only 2 have traffic From histats: ...
0
votes
1answer
30 views

Using a .htaccess file to set specific expire rules for different folders

I have 5 symlinked folders on my website that are pulling data folders that are located in the home folder of my hosting. /home/public_html/myfolder symlink points to /home/folder1/ the pages are ...
0
votes
0answers
58 views

.htaccess rules not working or renaming

I am deploying a legacy site on a server running Ubuntu 14.04 version. This site was developed using Symfony framework 1.4 and it was originally deployed at a shared server, thus redirections between ...
1
vote
0answers
15 views

Converting .Htaccess Rewrite Rule to Nginx

I have the following apache rewrite rule which I am trying to convert to work with nginx. RewriteRule ^(.*)\/(.*)-(\d{4})(?:-(.*))?$ album.php?artist=$1&album=$2&releaseyear=$3&extra=$4 ...
2
votes
2answers
63 views

.htaccess Lost SESSION after header redirect using mod_rewrite [L, QSA] with started session

PHP version 5.4.41 Apache version 2.2.15 Linux version 2.6.32 CentOS 6.6 I have some code that won't redirect properly. There is a lot of code and configuration, so I'm going to try and keep it as ...
0
votes
1answer
13 views

cname to subfolder re-write with htaccess

what I want to do is redirect: images.example.com/filename to example.com/images/filename I tried: RewriteCond ${REQUEST_URI} ^(images)/(.*)$ RewriteRule ^(.*)$ http://example.com/images/$1 ...
0
votes
1answer
57 views

Why doesn't my .htaccess work on this VPS?

I have the following .htaccess file in /public_html/.htaccess: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond ...
1
vote
2answers
46 views

Combine http to https and domain redirects using mod_rewrite

I'm trying to redirect www.example.com to a hosted blog at https://www.example.wordpress.com. The domain redirect works, but gives me a 403 error because it's redirecting http to https. Example.com is ...
0
votes
0answers
28 views

fallbackresource vs htaccess which one?

I have a website that uses .htaccess file. After digging for a problem I had, I found that I can use FallbackResource. It makes everything way simple on the apache configuration but more work on the ...
1
vote
1answer
42 views

Deny access to symlinked source

I have foo/bar.txt which should be 403 and I also have foo-hashed/hash/bar.txt which is a symlink to foo/bar.txt and should be accessible. foo/.htaccess contains Order deny,allow Deny from all ...
0
votes
1answer
19 views

Redirect to Python script in .htaccess while maintaining request URL

I have a website configured with Apache for http://www.example.com located in /var/www/example.com/. For an arbitrary sub-path of this website I would like to have all requests handled by a Python ...
0
votes
1answer
19 views

Mod Rewrite not working at all, everything else in the .htaccess works correctly

This must be the 100th time a topic with this name has been created however this time its slightly different. I am trying to use mod_rewrite to enable Short URLs on a MediaWiki install. I have added ...
0
votes
0answers
8 views

block users from seeing files, while still allowing index.html to get its assets

I wonder what approach should be taken, while designing a website. need help with wrapping my head around all the details regarding this. the webdir will hold all files/assets/server-code, which ...
1
vote
2answers
26 views

Switching DNS is breaking https redirects

We (my company) recently switch our name servers from GoDaddy to Amazon. Our sites remain hosted on GoDaddy. Before switching name servers, everything worked fine. We have a site, ...
0
votes
1answer
56 views

http to https including www 301 redirect [duplicate]

I currently have our Magento website to redirect http to https. Basically the site should only be accessed through https including the www. I think it is working however, it currently shows as a 302 ...
0
votes
0answers
24 views

URL routing for domains

I have a site with 10's of thousands of users. Each user has their own site hosted by me at a subdomain of mysite.com/user1 or as an add on domain at user1.mysite.com or user1.com. This is all done ...
0
votes
0answers
8 views

Redirect ip with folders to domains with htaccess [duplicate]

Currently I am using .htaccess file below, but it only redirects correctly with simtanda.com and not with "heartslovefree.com". So help me out please: RewriteEngine on # SIMTANDA RewriteCond ...
0
votes
1answer
72 views

Apache 2.4.12 Redirect Wordpress subfolder to another server ip address

I am running wordpress inside the laravel public folder which acts as the root of my site. How do I redirect to another server ip address i.e. (xx.xx.xx.xxx) when one accesses the following subfolder: ...
0
votes
1answer
26 views

redirect to new type of url and remove parts of the url with exception

I need to redirect old links to new links. The new links will be a bit different. For example this (I have marked with capslook on the part that doesn't belong to the post name) ...
0
votes
1answer
50 views

Use .htaccess to redirect to a symlinked subdir of the web root?

I'm trying to use Envoyer.io to deploy my code and I'm running into some issues. This utility makes two folders, current and releases. current symlinks to latest release in the releases folder. So ...
0
votes
0answers
18 views

htaccess doesn't work on mac / apache 2.4 [duplicate]

This is what I get in apache error log after reloading the page: [client ::1:54342] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ...
0
votes
0answers
37 views

Android browser file not downloading from linux server

I have two linux servers with domains i.e redsignal.net and eventbuizz.com I have uploaded same PDF files on both servers. PDF file on redsignal.net PDF file on eventbuizz.com When I open first ...
0
votes
1answer
43 views

Strange output from RedirectMatch

I'm trying some 301 redirects in .htaccess. I'm trying to redirect something like this: http://creek.com/wines/red/greatwine into http://creek.com/shop/product/wines/red/greatwine but I'm ...
2
votes
0answers
35 views

Is it possible to detect if client supports SNI? [duplicate]

So my SSL is using SNI, Bing doesn't want to index my site because of that and also some other sites are having problems. Such as reddit. Is it possible to detect if client supports SNI? I was ...
0
votes
1answer
173 views

Redirect to absolute URL in .htaccess returns wrong host name on OpenShift

I'm setting up a web site on OpenShift. It runs under Apache 2.2.15, but I do not have access to the Apache root or logs so I am trying to emulate virtual directories in an .htaccess file at the root ...
0
votes
2answers
99 views

Redirect page/subfolder to new domain url without changing url in browser

I have been looking for an answer this without any luck (searched everywhere) Basically, I want to rewrite a page (subfolder) to a new domain without changing the url. I've tried with no luck: ...
0
votes
1answer
26 views

How can I avoid non-existent file -systematically- requests?

This is my apache httpd log: [Wed May 13 18:29:48 2015] [error] [client 108.162.213.59] File does not exist: /www/html/ui/core.min.js [Wed May 13 18:29:48 2015] [error] [client ...
0
votes
0answers
124 views

Mod - Rewrite / .htaccess Issue with Apache 2.4.12

The file structure is as follows Public files: /home/usrname/public_html CGI BIN, where the software is running: /home/usrname/public_html/cgi-bin Private files: /home/usrname/public_html/_private ...
2
votes
1answer
46 views

Is it possible to enable htaccess for one directory only?

I've investigating performance problems on a website. The software we're using requires htaccess (i.e. it generates .htaccess itself if it's not there, so moving the rules to httpd.conf is not an ...
0
votes
1answer
38 views

htaccess redirect of search results [duplicate]

I am having some trouble redirecting some old URLs to new ones. This is the old path: /index.php?loadpage=./includes/search.php&searchstring=KEYWORD and I want it to redirect to this URL: ...
0
votes
1answer
27 views

IIS Domain is always routing to Domain Root

going to https://www.example.com/about always leads back to https://www.example.com/ How do I stop this while forcing a https://www.example.com/? non-www.htaccess RewriteCond %{HTTP_HOST} !^www\. ...
0
votes
0answers
17 views

Remove url query [duplicate]

how can I change from this: http://localhost/ajax/rsc.php?r=feed.js to this: http://localhost/ajax/rsc.php/r/feed.js ? (using htaccess)
-5
votes
1answer
42 views

pingdom sacking my site's resources [closed]

It appears that somebody created a pingdom account to ping my site once a minute, and since my website isn't hosted on a very strong server anyway, those requests get heavy and slow down the server, ...