Reply
Old 09-10-2009, 08:30 PM page redirecting
numbenator's Avatar
Ultra Talker

Posts: 432
Location: London
Trades: 0
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
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
When You Register, These Ads Go Away!
Old 09-21-2009, 11:57 PM Re: page redirecting
Super Talker

Posts: 123
Name: vikas
Trades: 0
why dont you use 301 redirect ... Its useful and most effective
__________________
Free Online Books Collection of free online books and free ebooks |Online pdf Books - Free online pdf books and free pdf eBooks
vikas1234 is offline
Reply With Quote
View Public Profile
 
Old 09-22-2009, 07:07 AM Re: page redirecting
numbenator's Avatar
Ultra Talker

Posts: 432
Location: London
Trades: 0
How do i use it in this example though
__________________
www.mastech-solutions.com
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to page redirecting
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.10818 seconds with 13 queries