You are indeed correct! Absolute URLs for everything, images, css,
every link in the whole site, but it's happy now. Seems like there
ought to be an easier way.
On Oct 29, 2009, at 10:52 AM, Shawn McKenzie wrote:
Rob Gould wrote:
I feel like I'm really close to a solution for the clean-url method
htaccess. I've successfully got it now so that:
However, I'm finding that when I click on subsequent links from:
that I land in a strange url-structure where it replicates the
part of the url.
Can someone tell me what I might need to change about my rewrite
to fix this issue? I'm getting lost in the world of base urls and
It's hard to tell without seeing the link and/or what code you use to
generate it, but off the top of my head I would say that it's not a
rewrite issue. It seems to be an issue with using relative URLs in
links. If you are on this page (this is in your browser address bar):
The browser will interpret all relative links like 'somefile.php' as:
But if you use your rewritten URL, then the browser will see relative
links as one of the following (not sure which without testing):
This is because it is interpreting the slashes as path separators.
probably need to generate absolute URLs in your links.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php