Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^car/(.*)/(.*)\.html$ model.php?&manu=$1&model=$2 [L] Does anyone see anything wrong with that? I'm currently speaking to my tech guys at Steadfast also!
It looks right and an example file I have shows the same syntax except I didn't use rewriteBase, and put a / in front of the model.php. And I know the example works.
I've noticed that when i upload the .htaccess file its disappears on the server maybe thats why literally nothing is happening. My support team said its because the file is hidden as there is a . before it...
That's correct, FTP program should still show it though. It's a security feature. .htaccess and .htpasswd both won't show if you have directory browsing enabled else it wouldn't do much good. Might help to check the error logs.
Ok well when i go to the original page it wont redirect BUT when i go directly to the page i wanted it to direct to (i.e. model/XXX/XXXX.html) it loads up but see's it as an actual page so no images load no links work etc because its trying to load model/xxx/xxxx/image/xx.jpg ERG this is weird!
Welcome to the hell that is mod rewrite. I had to change most of the code on one site since it was flaky with paths cause I was asked after the fact to use mod rewrite. I would worry about getting the page to redirect successfully then worry over images etc. The error logs will give better clues about how it's seeing the request.
You know what its not crucial yahoo and google both see my dynamic pages anyhow. Something i was doing to pass the time! I'd rather leave my server sound as a pound rather than risk losing everything!
If you just wanted to learn, I would do it as a test thing first. Then work on your site. Its good to know cause it doesn't look as confusing to the users of your site. But it can be really frustrating when it "has to work". You won't lose anything, besides hair as you slowly pull it out
Try this... RewriteEngine On RewriteRule ^car/([^/]*)/([^/]*)\.html$ /model.php?manu=$1&model=$2 [L] You have a bug in your syntax... "?&manu"
The & isn't needed on the first one. Its the way the query string is built up. You use it to join the key/values it should be model.php?manu=$1&model=$2, if you had more key/values to pass you would join them with &. He's right that should fix it.
If it is needed someone coded something wrong. I know more than enough about PHP and cgi where that format came from to state with certainity it is excess. Look to the address bar for this site, do you see it listed as thread.php?&t=333333 or as thread.php?t=444444 >?