Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.
4
votes
Accepted
just another mod_rewrite question
This rule will redirect (301 Permanent Redirect) all incoming requests to xxx.yyy.site.com domain to http://xxx.site.com/ preserving the URL path (e.g. http://xxx.yyy.site.com/kitten?say=meow will be …
8
votes
Accepted
.htaccess RewriteRule $1 contains wrong value
Your pattern ([^/]+)/?$ will match fred as well as index.php.
The key here -- the way how [L] flag works. After initial rewrite of fred occurs it goes to next rewrite iteration, where it will rewrite …
2
votes
Virtual Host under MacOSX not working
Maybe your config has wrong IP?
127.0.0.7 test.local
This one should work just fine:
127.0.0.1 test.local
Additionally you may have incorrect <VirtualHost> directives formatting (unless this is …
1
vote
Accepted
Replace 404 with 301 to other subdomain
You have to use correct variables when writing the rule: %{REQUEST_URI} !-f makes no sense (unless requested URL = exact physical path on server -- 0.000001% chance to have such unusual setup).
You n …
4
votes
Configure Apache HTTP 2.2 for PUT method
Please refer to Apache manual: http://httpd.apache.org/docs/current/mod/core.html#location
You most likely need to use <Location /output> instead (or use <Directory> instead of <Location>) -- that's my … Taking the above into consideration you will need something like this (sorry, I cannot connect to my Apache box to test it):
<Location /output>
Dav On
<LimitExcept GET HEAD OPTIONS PUT> …
2
votes
URL Rewrite to subdomains?
1) On your website, make sure that you generate PROPER URLs, e.g. http://minecraft.domain.com/1/lorem-ipsum instead of /article.php?id=1&category=Minecraft&Name=Lorem+Ipsum
Here, the acceptable chara …
2
votes
Accepted
How can I prevent people from looking at a listing of files in parent directory if I haven't...
Try adding this into your Apache configuration (for example, .htaccess file):
Options -Indexes
http://httpd.apache.org/docs/current/mod/core.html#options
Another alternative (which is also may be considered … as a bit safer approach) is to put default index file into such folders (the following directive tells Apache to display index.html from that folder if directory was requested):
DirectoryIndex index.html …
1
vote
Accepted
Issue with permanent redirect implementation
To force www. to be present in a domain name try this one instead (it's safer to have domain name hard coded):
RewriteCond %{HTTP_HOST} !=www.example.com
RewriteRule (.*) http://www.example.com/$1 [Q …
6
votes
Accepted
What is wrong with this Apache httpd.conf file for vhosts?
Apache does not know about apples.co.uk -- it only knows about www.apples.co.uk. So it uses first Virtual Host to serve apples.co.uk. Redirect will work OK here. … Apache does not know about bananas.co.uk -- it only knows about www.bananas.co.uk. So it uses first Virtual Host to serve bananas.co.uk .. which is www.apples.co.uk. …
5
votes
Accepted
Having trouble redirecting old product sites and categories to new pages
The common mistake that a lot of people do is trying to match whole URL including query string. The reality is: when matching URL, the pattern get applied to path part of it and query string has to be …
2
votes
Accepted
.htaccess rule to redirect from 404 to search results
The variable replacement will not work in ErrorDocument directive -- it will pass URL as is with no changes (maybe there are some special module that will perform such replacement -- I do not know).
…
3
votes
Accepted
What response headers encourage 304-Not Modified upon reloads?
Based on those "If-*" headers Apache decides how to reply to the request. I'm sure -- now you can see a pattern here -- very easy to spot which values where used and where. …
4
votes
Accepted
Is there any way to debug redirection rules in.htaccess?
Use RewriteLog and RewriteLogLevel directives to log such activity (IIS restart most likely will be required).
The higher value you put for RewriteLogLevel the more verbose/detailed it will be.
If …
11
votes
Accepted
How to redirect / convert any URL to lowercase?
To implement such redirect using mod_rewrite and .htaccess you need to use RewriteMap directive which cannot be placed in .htaccess -- only in server config / VirtualHost context. If you have such acc …