Click here to Skip to main content
15,921,959 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have to move one step back to root directory.
I have a sub directory "products". There is a file product.php in this directory.

I want to redirect this URL

http://www.example.com/products/product.php


To

http://www.example.com/catalog.php


for this I have written the following rule

RewriteRule ^products/product.php catalog.php


But This rule takes to
http://www.example.com/products/catalog.php

while catalog.php exists in root directory.

How can I set the RewriteRule to move it to root directory.

Note: I don't want to give the absolute path http://www.example.com/catalog.php to move it to root directory.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900