.htaccess Rewrite rule: single GET Parameter

RewriteEngine On RewriteBase / # GET Params without trailing slash (/) RewriteRule ^([0-9a-zA-Z]+)$ index.php?page=$1 # or # GET Params with trailing slash (/) RewriteRule ^([0-9a-zA-Z]+)/$ index.php?page=$1

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.