Showing posts with label mod-rewrite. Show all posts
Showing posts with label mod-rewrite. Show all posts

Sunday, June 10, 2012

Security: Deny access to .hg/* via mod_rewrite


My website is a mercurial repository with multiple subrepositories. I need to make sure I'm denying access to all files in every .hg directory on the server.

Friday, June 8, 2012

mod_rewrite/GoDaddy problem


Ok, so I really don't know much about mod_rewrite and I'm looking over the apache docs and still not figuring this out.

Apache Mod-Rewrite Primers?


I am wondering what primers/guides/tutorials/etc. are out there for learning to rewrite URLs using Apache/.htaccess? Where is a good place to start?

Tuesday, June 5, 2012

Quick mod_rewrite help on GoDaddy


This htaccess works fine locally, but on GoDaddy the URL isn't caught by the rewrite engine.

Short URL system: How to redirect the Custom URLs?


I'm trying to make a tinyurl-like service for my company, and so far looks good, but now I have a problem I can't solve.

htaccess mod-rewrite to subdomain


I'm using the following to redirect wildcard sub domains to corresponding folders:

apache rewrite rules issue for specific pages


I have problem with my .htaccess redirections. When I type:




http://www.domain.com/contact

Monday, June 4, 2012

Sunday, June 3, 2012

.htaccess mod_rewrite - how to exclude directory from rewrite rule


I have 8 lines of rewrite rules in my .htaccess file. I need to exclude two physical directories on my server from these rules, so they can become accessible. For now all requests are sent to index.php file.

mod_rewrite rule to redirect all requests except for one specific path


I'm trying to redirect all requests to my domain to another domain using mod_rewrite in an Apache 2.2 VirtualHost declaration. There is one exception to this -- I'd like all requests to the /audio path not to be redirected.

Friday, June 1, 2012

easyphp .htaccess rules


i need to rewrite rules in my installation of easyphp on windows 7.

user manual (seo + auto generate)


i have a website that allows people to get the manual online. i have a new version of the manual where everything is generated dynamically using php and mysql. so no more html generated.

.htaccess directives to *not* redirect certain URLs


In an application that heavily relies on .htaccess RewriteRules for its PrettyURLs (CakePHP in my case), how do I correctly set up directives to exclude certain directories from this rewriting? I.e.:

Thursday, May 31, 2012

How do I ignore a directory in mod_rewrite?


I'm trying to have the modrewrite rules skip the directory vip . I've tried a number of things as you can see below, but to no avail.

Wednesday, May 30, 2012

What happens first? .htaccess or php code?


If I use mod_rewrite to control all my 301 redirects, does this happen before my page is served? so if I also have a bunch of redirect rules in a php script that runs on my page, will the .htaccess kick in first?

Tuesday, May 29, 2012

Block by useragent or empty referer


A stranger bot (GbPlugin) is codifying the urls of the images and causing error 404.

Tips for debugging .htaccess rewrite rules


Many posters have problems debugging their RewriteRule and RewriteCond statements within their .htaccess files. Most of these are using a shared hosting service and therefore don't have access to the root server configuration. They cannot avoid using .htaccess files for rewriting and cannot enable a RewriteLogLevel" as many respondents suggest. Also there are amy .htaccess -specific pitfalls and constraints are aren't covered well. Setting up a local test LAMP stack involves too much of a learning curve for most.