Jump to content
Larry Ullman's Book Forums

Recommended Posts

Hi Larry,

 

 

I am still reading this wonderful book of yours and I'm learning a lot from it. However I'm having  some problems regarding the mod_rewrite. The files are under localhost/ex2/html. I added the RewriteBase /html/ on the .htaccess file and I've changed the HTML references to <a href="/html/shop.php">

but it seems that it's still not working. I have added 2 copies of .htaccess file one under the /ex2/ and the other one is under the /html/ file just to be sure. When I check http://localhost/ex2/html/shop it's not found but when i added .php it works. So im not sure what to do next. mod_rewrite is kinda tricky.

 

Thank you so much in advance Larry!

 

Jan

 

 

Link to comment
Share on other sites

Thanks so much, Jan. I really appreciate it. Sorry to hear about the mod_rewrite issues. They can be complex.

 

I would definitely only use one .htaccess, just so you don't run into collision issues. Next, I'd do the most basic test, just to confirm that it's working at all (something like /test goes to index.html).

Link to comment
Share on other sites

 Share

×
×
  • Create New...