Jump to content
Larry Ullman's Book Forums
Sign in to follow this  
nika

.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  

Share this post


Link to post
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.   

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...