Wrox Programmer Forums
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 11th, 2008, 12:14 PM
Registered User
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default rewrite problem

I am using mode rewrite on the ecommerce site I am currently building.
The problem I am having is that all the links on the page start with the page name from the last link used. Let me try to explain it a little better.
E.g. Site domain= www.site.com, link just been used to go to page on site =
www.site.com/newpage.php this works as it should. But when using a link that is on the newpage.php, instead of the link just starting with the domain then the page which is being requested it is this www.site.com/newpage.php/pagerequested.php
This would not be a problem as a rule, because I could use a rewrite link on the rest of the hyperlinks. But it is doing this on a form submit.

Old March 11th, 2008, 12:49 PM
Registered User
Join Date: May 2006
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts

I have sorted it now, just needed a simple /

Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Rewrite kumiko Classic ASP Basics 1 April 17th, 2008 01:05 AM
problem with URL rewrite mlcy ASP.NET 2.0 Professional 3 June 21st, 2007 06:05 PM
How can i rewrite the example bookClient.htm Keyne XML 0 August 23rd, 2006 07:11 AM
Correlated Subquery Rewrite Needed gstanden SQL Language 5 November 24th, 2004 02:39 PM
rewrite table by js gooly Javascript How-To 3 March 15th, 2004 04:34 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.