Bruce.Burnell
10-01-2007, 05:56 AM
I have (or rather had) a site where someone would enter www.mysite.com/something. The 'something' did not exist, but using .htaccess I sent it to a page called www.mysite/com/lookup.html where a bit of javascript would parse that piece off the URL and use it as data. I looked 'something' up in a database using php, and if it found it, I sent it to a page that would display some stuff from the database.
I say 'had' instead of 'have', because the site is now on a different (though still apache) host, and the .htaccess is working differently. Now when I look at the URL in lookup.html, instead of finding the original www.mysite.com/something, I am finding www.mysite.com/lookup.html. Any idea what I could have done wrong? On the old site, I had coded the .htaccess from scratch. On the new site, the host had generated a bunch of additional lines. I can attach the old and new version if that will help at all.
I say 'had' instead of 'have', because the site is now on a different (though still apache) host, and the .htaccess is working differently. Now when I look at the URL in lookup.html, instead of finding the original www.mysite.com/something, I am finding www.mysite.com/lookup.html. Any idea what I could have done wrong? On the old site, I had coded the .htaccess from scratch. On the new site, the host had generated a bunch of additional lines. I can attach the old and new version if that will help at all.