Hi
I have a dynamic page by example flavor1.php that takes a parameter id so example of call is flavor1.php?id=999
In my .htaccess file i have a number of mod redirects defined as below -
RewriteRule ^research/centres/(.*?)/$ http://127.0.0.1/flavor1.php?id=$1
However, i wish to use a 301 direct in cases where flavor1.php?id=$1 is entered and not a url defined by the mod redirects.
so far, i have defined the url of each page with in the page table of db, and i use php to redirect. Like below
//Header( "HTTP/1.1 301 Moved Permanently" );
//Header( "Location: research/centres/999/" );
THE PROBLEM is that i sort of get a loop. As logically i would expect so my question is what am i doing wrong or how do i overcome this.
The point of exercise was to disable flavor1.php being picked up as a url and that all the mod redirects were what actioned on the server
Any help with this would really be appreciated even if its to chat so as to better my terminology as i confess im not 100% onto what i required if you understand that. Its a client request.
Thanks very much
Steve 
|