Get exclusive CAP network offers from top brands

View CAP Offers

.htaccess, php, and how to rewrite an URL

kwblue asked 1 year ago
Hey guys,

I have been searching for days on how to do this and I keep NOT finding what I want, so I thought I might ask some experts in here.

How would I change and URL from:

http://www.mydomain.com/details.php?id=microgaming&name=slot%5B/CODE%5D

TO

[CODE]

[url]http://www.mydomain.com/microgamingslot/[/CODE][CODE]http://www.mydomain.com/details.php?id=microgaming&name=slot[/CODE]

TO

[url]http://www.mydomain.com/microgamingslot/[/CODE][CODE]

http://www.mydomain.com/microgamingslot/%5B/CODE%5D

2 Answers
occ answered 1 year ago
Maybe this will work:
For Php:
[PHP] Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.yournewaddresshere.com” );
?> [/PHP]

Engineer answered 1 year ago
Try this:

RewriteEngine on
RewriteRule ^microgamingslot/ details.php?id=microgaming&name=slot [nc]