Jump to content
Larry Ullman's Book Forums

.htttaccess Makes Me Mad


Recommended Posts

i can't  access any css  and images folders. i have sent the whole day,try things hundred times, watch playlist about .htttaccess but without result.     please tell me what should i write in .httaccess file  to see css and images folders.  my web root directory is C:\xampp\htdocs\larry-ecommerce\html  

Link to comment
Share on other sites

i dont want to use mod_rewrite, i want to delete all .htttaccess files ,but it causes other lots of bugs and to fix that is very tedious process. just larry mentioned that, easy fix that problem is add .httacces file  that code:  

<IfModule mod_rewrite.c>

RewriteEngine on
RewriteBase /ex2/
 
but what he mean in ex2? exactly what i need to add instead of ex2?  my web root directory is   C:\xampp\htdocs\larry-ecommerce\html  . please help.   
Link to comment
Share on other sites

Here's the official Apache explanation of RewriteBase:

http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase

 

And here's a more understandable explanation of RewriteBase (I'd read the various answers for a more holistic view):

http://stackoverflow.com/questions/704102/how-does-rewritebase-work-in-htaccess

 

And another possible solution:

http://michael.orlitzky.com/articles/avoiding_rewritebase_with_mod_rewrite.php

 

Please look all of those over, and lemme know if you need additional help.

Link to comment
Share on other sites

 Share

×
×
  • Create New...