I have a sub directory "products". there is a file product.php in this directory. I have rewrite the URL. I want to redirect to a file prdct.php which is in root directory.
Actually my URL is as under
http://www.example.com/products/product.php?p_name=product
Now, I want to redirect to
http://www.example.com/prdct.php?p_name=product
I have written the following RewriteRule for this
RewriteRule ^products/([A-Za-z0-9-]+)/?$ prdct.php?p_name=$
But the Problem is prdct.php exists in root directory. What should I do here to redirect it to root directory's prdct.php file.
Note: I don't want to write http://www.example.com/prdct.php to access it, because it creates problem in my URL Rewriting.