Options +FollowSymLinks
RewriteEngine on

# Ignore certain folders
# comment out the following line, if you want certain additional folders to be accessible
# RewriteRule ^(myfolder|myfolder2) - [PT]

# Login and registration
RewriteRule ^login/?$ login.php [L]
RewriteRule ^register/?$ join.php [L]

# Other paths
RewriteRule ^pages/([0-9]+)/?$ index.php?content=page&id=$1 [L]
RewriteRule ^posts/show/([0-9]+)/?$ index.php?show=$1 [L]
RewriteRule ^posts/([0-9]+)/?$ index.php?content=detail&id=$1 [L]
RewriteRule ^posts/by/([a-z0-9]+)/?$ index.php?username=$1 [L]
RewriteRule ^categories/([0-9]+)/?$ index.php?catid=$1 [L]
RewriteRule ^search/([a-z0-9]+)/?$ index.php?search=$1 [L]
RewriteRule ^archive/?$ index.php?content=archive [L]
RewriteRule ^profile/([0-9]+)/?$ index.php?content=profile&id=$1 [L]
RewriteRule ^rss/?$ rss.php [L]

