Mega list of redirects (.htaccess)
|
07-04-2010, 01:04 PM,
(This post was last modified: 07-04-2010, 01:30 PM by RichardGv.)
|
|||
|
|||
RE: Mega list of redircts
1. Thanks.
2. .htaccess works under both Windows and *nix versions of Apache, as far as the server is configured correctly (depends on AccessFileName and (kind of) AllowOverride). http://httpd.apache.org/docs/trunk/howto/htaccess.html (It's nevertheless true that Windows don't hide files with names starting with dot, unlike *nix systems.) 3. There's something that you may want to pay attention, about the directive Redirect: Quote:Redirect DirectiveSo, for example, if somebody tries to access http://your-site.com/oldpage.html.old/testpage.html, and you have this rule in your .htaccess: Code: Redirect 301 /oldpage.html http://example.com/newpage.html 4. mod_rewrite provides a much more flexible solution that mod_alias for redirections, which you might be interested in: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html 5. About the example of the removal of .html extension, you can use mod_rewrite to avoid the problem that accesses to existing files are redirected incorrectly: Code: RewriteCond %{REQUEST_FILENAME} !-f Code: RewriteCond %{REQUEST_FILENAME} !-f
Gentoo Linux User (w/ fvwm) / Loyal Firefox User / Owner of a Stupid Old Computer - My PGP Public Key
No man is an island, entire of itself; every man is a piece of the continent, a part of the main; if a clod be washed away by the sea, Europe is the less, as well as if a promontory were, as well as if a manor of thy friends or of thine own were; any man's death diminishes me, because I am involved in mankind; and therefore never send to know for whom the bell tolls; it tolls for thee. -- Devotions Upon Emergent Occasions (1624), John Donn |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Mega list of redirects (.htaccess) - by Mone - 07-04-2010, 08:11 AM
RE: Mega list of redircts - by RichardGv - 07-04-2010, 01:04 PM
RE: Mega list of redircts - by HiddenKnowledge - 07-06-2010, 09:22 PM
|