RewriteEngine on

# Replace with site url prefix. If osdate is in your site root, set this to just / symbol
# If osdate is in a subdirectory, set to /subdirectory/
RewriteBase /osdate/

RewriteRule ^privacy.html$ index.php?page=privacy
RewriteRule ^terms_of_use.html$ index.php?page=terms_of_use
RewriteRule ^services.html$ index.php?page=services
RewriteRule ^faq.html$ index.php?page=faq

RewriteRule ^stories.html$ index.php?page=stories
RewriteRule ^story([^/]+).htm$ index.php?page=showstory&storyid=$1

RewriteRule ^articles.html$ index.php?page=articles
RewriteRule ^article([^/]+).htm$ index.php?page=showarticle&articleid=$1

RewriteRule ^news([^/]+).htm$ index.php?page=shownews&newsid=$1
RewriteRule ^allnews.html$ index.php?page=allnews

# Translates sitename/username to sitename/showprofile.php?username=username
RewriteRule ^([a-zA-Z0-9_-]+)$ showprofile.php?username=$1

# Translates {$id}.htm to showprofile.php?id={$id}
RewriteRule ^([^/]+).htm$ showprofile.php?id=$1

