We help IT Professionals succeed at work.

Rewrite Rule - redirecting to a specific page not working

jagku
jagku asked
on
Hello Experts,

I have this in my .htaccess:

RewriteEngine on
RewriteRule ^abc/(.*)$ find.php?myid=$1

The user would type in:

http://www.mydomain.com/abc/1234

I want to redirect to http://www.mydomain.com/find.php?myid=1234
without the user realising that they are being redirected.

How do I do this?

Thanks!
Comment
Watch Question

Commented:
Fixed with:

RewriteEngine on
RewriteBase  /
RewriteRule ^abc/(.+)$ find.php?myid=$1 [R]