Mobile app version of vmapp.org
Login or Join
Becky754

: .htaccess guide / examples / tutorials? Does anyone know of any good guides for someone new to editing and making .htaccess files. Anything about rewriting urls, directory access and passwording

@Becky754

Posted in: #Guide #Htaccess #UrlRewriting

Does anyone know of any good guides for someone new to editing and making .htaccess files. Anything about rewriting urls, directory access and passwording a directory would be great.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Becky754

2 Comments

Sorted by latest first Latest Oldest Best

 

@Fox8124981

Here's the wiki of serverfault.com
The howto's htaccess official guide
The official mod_rewrite guide


Two hints to help you doing the job faster:



Please try to use the RewriteLog directive: it helps you to track down problems:

# Trace:
# (!) file gets big quickly, remove in prod environments:
RewriteLog "/web/logs/mywebsite.rewrite.log"
RewriteLogLevel 9
RewriteEngine On




My favorite tool to check for regexp:
www.quanetic.com/Regex (don't forget to choose ereg(POSIX) instead of preg(PCRE)!)

You use this tool when you want to check the URL and see if they're valid or not.

10% popularity Vote Up Vote Down


 

@Sent6035632

How about the official documentation ? Next to that, this guide may be a good introduction.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme