I want to rewrite my url, the url uses a variable I think its called, but I want to shorten the url to http://xatwebs.co/powers/gold as it is currently http://xatwebs.co/powers/power?power=gold I have search for rewrite methods but the ones i have tried has either broke it completely or made a loop redirect making the page non viewableRedirect 301 /trusted http://community.xat.com/showthread.php?28330-Prize-HoldersRedirect 301 /forums http://xatwebs.co/forumRewriteEngine onRewriteBase /# force url to lowercaseRewriteCond %{REQUEST_URI} [A-Z]# ensure it is not a file on the drive firstRewriteCond %{REQUEST_FILENAME} !-sRewriteRule (.*) rewrite-strtolower.php?rewrite-strtolower-url=$1 [QSA,L]RewriteEngine on## If requested URL-path plus .php exists as a fileRewriteCond %{DOCUMENT_ROOT}/$1.php -f# Rewrite to append .php to extensionless URL-pathRewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]ErrorDocument 404 /404.phpErrorDocument 403 /403.phpRewriteCond %{HTTP_HOST} ^xatwebs\.co$ [OR]RewriteCond %{HTTP_HOST} ^www\.xatwebs\.co$RewriteRule ^notice1$ http\:\/\/assistance\.xatwebs\.co\/general\/inactivity\-notice\/ [R=302,L]RewriteRule ^powers/(.+)$ /power.php?power=$1 [QSA,NC,L]Update: I think I have fixed it by using this code as it allows me to do xatwebs.co/powers/red but it doesn't redirect from xatwebs.co/powers/power.php?power=redRewriteEngine OnRewriteCond %{HTTP_HOST} ^www.xatwebs.coRewriteRule (.*) http://xatwebs.co/powers/$1 [R=301,L]RewriteEngine OnRewriteRule ^([a-zA-Z0-9_-]+)$ power.php?power=$1RewriteRule ^([a-zA-Z0-9_-]+)/$ power.php?power=$1
Rewrite url /powers/power.php?power=
htaccess;redirects