View Single Post
10-16-2006, 06:50 PM
#5
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

i also ran into the common image path problem.

Code:
# rewrite image paths
RewriteRule ^[a-z0-9]+/images/(.+)$ /images/$1 [L]
RewriteRule ^[a-z0-9]+/[a-z0-9]+/images/(.+)$ /images/$1 [L]
that needs to be added to the htaccess in order to get image paths to work. you're probably going to have to do the same for css and js files, so i suggest storing them in a global include folder so you can rewrite all the urls to point to it instead of trying to work around a call to the root folder and having it bypass the rewrie to index.php. again, you'll have to write a rule for every directory level you use.

i hope that made sense.

edit: i see what the error is now salathe. that article has turned out to be very poorly written. i got into php when php5 came out, so i don't know how well it would have worked with php4, but i had to change to much to try and get all the $_SERVER['REQUEST_URI'] stuff to work that it just didn't seem worth it.

in the end i just wanted to be able to manipulate the page like i normally would using the ? and &. thanks for your help, your htacces code is pretty close to what i'm using now.