Website Toolbox Pro

How Can I Use Mod_rewrite To Give Users Their Own Directories?

Htaccess, Mod_Rewrite Comments »
I want to have directories such as www.mydomain.com/user1 actually access www.mydomain.com/users/user1.
How can I do this in the .htaccess file without affecting the redirection of other files and directroies on the server?
Many thanks.

Continue reading How Can I Use Mod_rewrite To Give Users Their Own Directories? »

Mod_rewrite Configuration

Htaccess, Mod_Rewrite Comments »
I have the following problem, I have this standard mod_rewrite configuration for TextPattern use.

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /relative/web/path/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>

This helps rewrite folders such as:
http://www.website.com/products/
into a index.php TXP compatible URL.

However, I have one real physical directory called http://www.website.com/choristes/ that I don’t want to be rewritten by the RewriteRule.

Could you tell me how I can configure my htaccess to achieve this specific behaviour?

Thanks a lot!

Continue reading Mod_rewrite Configuration »

Mod_Rewrite URL?

Htaccess, Mod_Rewrite Comments »
How can I use mod rewrite to rewrite my URL. I want my URL to look like this
http://www.whatever.com/links
Not
http://www.whatever.com/links.html

Please, be VERY detailed.

Continue reading Mod_Rewrite URL? »