Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



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

Posts: 516
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
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 09-21-2009, 11:57 PM Re: page redirecting
Extreme Talker

Posts: 206
Name: vikas
Trades: 0
why dont you use 301 redirect ... Its useful and most effective
__________________

Please login or register to view this content. Registration is FREE
Collection of free online books and free ebooks
Please login or register to view this content. Registration is FREE
- 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
Webmaster Talker

Posts: 516
Location: London
Trades: 0
How do i use it in this example though
__________________

Please login or register to view this content. Registration is FREE
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.17804 seconds with 12 queries