Jump to content

links break with mod rewrite


beermaker74

Recommended Posts

I have been developing this site and I have finally got around to doing the mod rewrite. i have a dynamic page www.myserver.com/listings.php?houseid=1. I have the rewrite now working with www.myserver.com/listings/1 I am more than happy with this address. The one thing I need to do is include the slash at the end of the url ie www.myserver.com/listings/1/ so that if they put this in the address bar that it directs them to www.myserver.com/listings/1. Since I am new at this rewriting I am not quite sure what is going on in the background. My issue is the links that I have on the page are all broken. But they work if I put absolute links. Is this what is required for it to work? Since it is only a few dynamic pages that I have to change it is no big deal but if i had 100 pages to change I would be a bit frustrated. So is there a way to deal with this. Maybe in the htaccess where my rewrite rules are?

thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.