Jump to content
Larry Ullman's Book Forums

Recommended Posts

I think I was following the instructions very precisely, but the result isn't what it was supposed to be.

 

Going to mysite/about/ doesn't land me on the about page (which I have created just to see what would happen, even though the book doesn't mention anything about creating it.)

 

Repeated clicks on the links, modified as suggested in the book, result in URLs like this:

 

index.php/about/index.php/this/

 

index.php/about/index.php/this/index.php/that/index.php/about/index.php/that/

 

and so on.

 

I'd appreciate some help with this from a knowledgeable person.

Share this post


Link to post
Share on other sites

Dimitri, the code in the book works, so if you're not getting the desired result, then something is wrong with your code, but we can't confirm that unless you post your actual code.

From the information you have provided though, it seems like the URLs are being concatenated on top of each other, for one reason or another.

Share this post


Link to post
Share on other sites

I'd start by making a really simple mod_rewrite test that doesn't involve any regexes. That way you can at least confirm that the environment is not the issue.

I'd start with something simple like a.html, b.html and c.html, and see if you can make it so that when the b.html link is clicked from the a.html page, c.html instead of b.html is loaded.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...