Log in

View Full Version : htacess redirection issue



ankush
11-29-2014, 06:39 AM
Hi, i have an issue with my .htacess file. It is redirecting 2 different url to same file.

I have below code in my htacess:


RewriteRule demo-page demo_page_1.php
RewriteRule demo-page-new demo_page_2.php

1st rule is redirecting demo-page to demo_page_1.php but 2nd rule is also redirecting demo-page-new to demo_page_1.php

I guess, issue is with the first same keyword. How can i fix it?

marain
12-28-2014, 05:48 PM
Ankush,

I cannot see anything wrong with how you set it up. My best guess is that there is something else lurking in the picture. For example, are you sure that you uploaded the .htaccess file to the proper folder? Are you sure that the .htaccess file that you uploaded is the one that you intended to upload?