- Code: Select all
RewriteEngine on
RewriteRule ^deposit-options/?$ deposit_options.php [L]
RewriteRule ^deposit-options/([^/\.]+).htm?$ deposit_options.php?deposit=$1 [L]
RewriteRule ^reviews/?$ site_review.php [L]
RewriteRule ^reviews/([^/\.]+).htm?$ site_review.php?site=$1 [L]
RewriteRule ^articles/?$ articles.php [L]
RewriteRule ^articles/([^/\.]+)/?$ articles.php?cat=$1 [L]
RewriteRule ^articles/([^/\.]+)/([^/\.]+).htm?$ articles.php?cat=$1&at=$2 [L]
RewriteRule ^poker-bonus/?$ bonus.php [L]
RewriteRule ^poker-bonus/([^/\.]+).htm?$ bonus.php?display=$1 [L]
RewriteRule ^usa/?$ usa.php [L]
RewriteRule ^usa/([^/\.]+).htm?$ usa.php?display=$1 [L]
RewriteRule ^main.css?$ css.php [L]
Currently my htaccess listed above gives me the following urls.
mysite.com/reviews
mysite.com/reviews/site.htm
mysite.com/poker-bonus/
mysite.com/poker-bonus/usa.htm
But I would like the ability to edit the first part of the url structure ("reviews", "poker-bonus") via the admin panel.
I can handle the php part Im just stuck with the mod rewrite.
If anyone can point me in the right direction I would be most grateful.
Thanks for reading.