View Single Post
  #2 (permalink)  
Old 05-13-2007, 10:27 PM
studiokraft studiokraft is offline
WebProWorld New Member
 

Join Date: Jun 2006
Location: NorthEast
Posts: 23
studiokraft RepRank 0
Default Re: This page is showing an error....why?

Quote:
Originally Posted by watto
Now, it seems to be working fine, however I noticed that if I book mark an advertisement page ( www.business-trader.com.au/buy_sell_business_australia/Impressive+Resumes/1553/Services/0/1/index.html ) it will display as an error once clicked on.

My programmer told me this is because it is a protected page.

Why is this happening and what is a protected page?
Hello!

"mod_rewrite" is used when you want to transform a URL into another. Most likely your programmer is using mod_rewrite to transform:

Code:
http://www.business-trader.com.au/buy_sell_business_australia/Impressive+Resumes/1553/Services/0/1/index.html
Into something like:

Code:
http://www.business-trader.com.au/addshow.php?section=buy_sell_business_australia&advertiser=Impressive+Resumes&adid=1553  etc. etc.
There are several possibilites to explain a "protected page", and probably a lot more that I haven't considered as well:

Depending on how your system is set up, a "protected page" could be a page that only certain users can access, or for tracking purposes, a page that is designed to only be displayed once.

There are some numbers in the URL that you provided, and it is possible that one or more of them references data in your web site that the programmer has deemed "protected", or perhaps is a session ID number of some sort that becomes invalid after a set period of time.

It is also possible that the programmer had only allowed access to the "advertising pages" from your web site domain, so clicking on a link to them without first visiting the main site causes an error.

If you are referring to the errors displayed at the top of the page:

Code:
Warning: implode() [function.implode]: Bad arguments.
This means that the programmer was expecting some data to be there that wasn't. The errors that follow also seem to be a result of the missing data.

In any case, it doesn't sound as though the issue you are experiencing with bookmarking the links from your site is directly related to mod_rewrite, unless the "rules" that were set for the rewrite do not include information that the addshow.php script was expecting to see, or if the rules for mod_rewrite expect the referring domain to be your web site (only allowing clicks from your site)

Without seeing the setup for the rewrite itself, it is difficult to tell. I hope this wasn't too confusing. ;)
__________________
~==================================~
Kim Kraft
StudioKraft
http://www.studiokraft.com/
~==================================~
Reply With Quote