Directory-level configuration file found mostly on Apache web servers

learn more… | top users | synonyms (1)

0
votes
1answer
19 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
17 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
22 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
22 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 ...
1
vote
0answers
33 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
0answers
34 views
+50

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
40 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
0answers
10 views

Error 500 on codeigniter .htaccess [closed]

I have a linux hosting with godaddy. My code works on xampp localhost but when i uploaded it to the godaddy hosting server, I get Error 500. I tried to modify the .htaccess file, then i get a blank ...
-2
votes
0answers
12 views

IIS customHeader for only few files [closed]

how can I change this htaccess as a web.config (IIS config file) <FilesMatch "\.(?i:mp3|mp4|mkv|3gp|flv)$"> Header set Content-Disposition attachment </FilesMatch>
0
votes
1answer
19 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
43 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
19 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
29 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
11 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)
-1
votes
0answers
10 views

redirect uppercase to lowercase and remove double plus hyphens in httpd [duplicate]

My website is based on mp3, first my website URL looks like website.com/mp3/song-name due to some SEO reasons I changed it to website.com/song-name-mp3-download.html using htaccess ...
-5
votes
1answer
30 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, ...
1
vote
2answers
117 views

htaccess redirect loop only on one of two servers

I have a web app installed on two servers. On one of the servers, when I'm accessing the homepage I get the "Error code: ERR_TOO_MANY_REDIRECTS" error in the browser while on the other one everything ...
0
votes
1answer
48 views

Blocking UserAgent libwww-perl with .htaccess not working?

The server is running on Apache, and trying to block libwww-perl, but not sure why it's not working. I've put the following in my .htaccess, but when I run the test I still get the notification that ...
1
vote
0answers
11 views

Enable/allow Proxy From Different Server With SSL

I have a node.js app on server A (http://sub.domainA). My customer wants to use this solution without redirecting. The configuration in .htaccess for the node.js service on server A looks like this. ...
0
votes
1answer
25 views

Block an http referrer on the server level

I am seeing multiple fake http referrers to several sites on my server, which for the most part doesn't bother me, except that they distort visitor stats. I have filtered the questionable domains out ...
-1
votes
0answers
12 views

Redirecting to https gives an error

I recently bought an SSL certificate. When trying to access my website with https://... it works fine. I'm using Codeigniter and want to redirect från http:// to https:// in the .htaccess file. I have ...
-1
votes
1answer
14 views

Godaddy .htaccess and mod_url

I'm an experienced full stack developer and freshly minted webmaster. Recently my client asked me to create a redirect from one url to an outside page. I know how to make a page redirect and I'm ...
0
votes
0answers
26 views

.htaccess multiple rewrite rules .php & .html

I'm pretty new to editing .htaccess and I'm still trying to get a grasp of what to do. I currently have the following code: Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f ...
-2
votes
1answer
20 views

How to redirect between Wordpress site using .htaccess if the origin has .html [closed]

How to redirect between Wordpress site using .htaccess if the origin has .html the first site i use permalink .html example: www.domain.com/articles/content.html if i'd like to use 301 redirect to ...
0
votes
1answer
85 views

How To Force Rewrite and Redirect Url [duplicate]

I have a url: http://domain.com/i.php?c=PT and I Rewrote it to http://domain.com/PT successfully. But When I browse http://domain.com/i.php?c=PT, it wont redirect to http://domain.com/PT. Is there ...
0
votes
2answers
17 views

rewrite www.mysite.com requests to www-staging.mysite.com with .htaccess

I have a staging and production Apache server. To access staging I just go to www-staging.mysite.com/a/sub/directory. To access production, just remove the -staging in the www. Currently, all the ...
0
votes
1answer
59 views

htaccess: get request domain for mobile redirect

We have a mobile site that is served using multiple domains. We want to redirect users who are using desktop user agents to our desktop sites while preserving the original domain the user used to ...
1
vote
0answers
34 views

Special nginx hotlink protection conversion from Apache .htaccess rule

I have the following anti-leeching rewrite rule in Apache, which i'd like to have in nginx. I see cookie or referrer rule examples. But none combining both, so I am not sure how to go about this. ...
2
votes
2answers
183 views

Apache http to https redirection [duplicate]

I'm using below .htaccess rule to redirect all http requests to https. RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} And it's working ...
0
votes
2answers
37 views

Restrict Location Match by IP via .htaccess

I have a url path defined in rewrite rules ('/admin') which I would like to restrict access to only 1 ip address. I'd image the best way would to use .htaccess rather than coding it in. I've tried ...
0
votes
1answer
22 views

Rewrite rule for specific domain with language (domain.de, domain.com etc.)

I have web application which is accessed via two URLs: domain.com/en/param/param domain.com/de/param/param Is it possible to create a virtual host for a language-specific domain like ...
2
votes
1answer
37 views

htaccess regex not processing URLs properly

I'm trying to redirect (or 'rewrite') over 3000 urls for a site where we updated the SEF of most of the content pages to remove an ID number that was not needed/desired. This should be a simple ...
0
votes
1answer
92 views

.htaccess file is not working on Apache 2.4.12 and Windows Server 2008 R2

I am trying to add Authentication window to a section of the site using .htaccess file. But It is not working "the site is acting that the ".htaccess" files does not exists. here is that content of ...
-1
votes
1answer
27 views

can i .htaccess rewrite an url to subfolder if it is one of two alias domains?

two domains point on one and the same webapplication on my server. but when I use the http://domainA.tld it shall point to http://domainB.tld/service but it shall not be a riderict and the address bar ...
1
vote
0answers
34 views

Use custom environment properties from Elastic Beanstalk for htaccess

Is there a way to use the custom environment property of elastic beanstalk in htaccess? I only want to rewrite http to https when not running locally so I thought I could do this by using the ...
0
votes
1answer
39 views

mod_rewrite not acting as expected — missing path info

I've just installed a fresh apache (Apache/2.4.7 - Ubuntu) and created and enabled a site with a Document Root of /var/www/html. With mod_rewrite enabled, I proceeded to create a simple .htaccess file ...
0
votes
0answers
30 views

How do I accomplish Drupal “double gzip” prevention in Nginx?

There is this section of the default .htaccess that Drupal ships with: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] ...
0
votes
1answer
18 views

Apache AllowOverride Based on Directory

Background Small team(4 people, 2 devs, 1 server admin, director) Three internal applications, one per server. httpd.conf is set to AllowOverride None on / None of our team members are accustomed to ...
-2
votes
2answers
37 views

Remove ?m= string from urls

I have urls like site.com/gallery/var/resizes/somename/somename1/somename2.jpg?m=somenumber would like to remove the ?m=somenumber part from urls and simply show ...
0
votes
1answer
13 views

A special rule for a directory in .htaccess

I have this .htaccess file: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?p=$1 [QSA] I'd like to create an ...
1
vote
1answer
199 views

Apache 2.4.9 on Debian 7.8 - .htaccess options not allowed

I’m part the team that administrates a Apache 2.4.9 web server running on Debian 7.8. We’re having an issue with one of our users website: www.example.com/~user When we try to access this URL, a ...
0
votes
0answers
40 views

Total DNS errors 100% in openshift

From yesterday suddenly my website down and Google webmaster shows Total DNS errors 100%. My app is http://core-ahang2mail.rhcloud.com I don't know what should I do, Could you please help me? ...
0
votes
1answer
48 views

Robots file behaviour

I've noticed something odd today. if i go to http://www.google.com/robots.txt, IE11 shows me the contents of google's robot file. However if i go to my site (still in development) using the same ...
0
votes
2answers
18 views

how to write RewriteCond for a url with subdomain

I am trying to ban some bots by writing a RewriteCond rule in htaccess file. Is the following ruleset correct if I add the following: ## block traffic from particular referrers RewriteEngine On ...
-3
votes
1answer
63 views

Why same request for hundreds times in access log

I don't know what comes to this, and how to prevent it. Look at the time, it keep on with the same request for hundreds times. Not just those particular IPs but some others too. How do I prevent this. ...
1
vote
1answer
45 views

Apache2.4 mod_rewrite won't redirect me to subdir based on visiting domain

I have an Apache2.4 server with public dir in /var/www/html. In that dir I have a Wordpress site with this .htaccess: RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
1answer
58 views

Using nginx or mongoose or mongrel or other tiny web server, how to serve certain files from subdirectories as from one root or top level directory

I have a directory structure let's say of /user/me/project1 /usr/me/project1/private/stuff /usr/me/project1/whatever/bla/bla /usr/me/project1/pdf/bla.pdf /user/me/project2 /user/me/project2/priv1 ...
0
votes
1answer
29 views

outlook trying to access image through webdav in email signature

I have an html email signature and 1 image on it which is hosted online. In Outlook 2010 it tries to get this through webdav which at atimes to users can take a while, once it fails then it gets it ...
0
votes
0answers
77 views

amazon ec2 - opencart seo url not working

I have installed opencart on my amazon ec2 server. I am trying to activate the seo url feature but it is not working. I have renamed .htaccess.txt to .htaccess in folder directory ...