Jump to content

mod_rewrite on localhost


goatboy

Recommended Posts

I'm not having any problem with mod_rewrite on my server. It seems to be working fine. but on my local machine I'm

My settings in my httaccess file are the same.
O my local machine is windows with apache 2.0. my server is fedora core 2 not apache 2.0

the problem is, and i initally had this problem on the server.
the css and images are broken.
To fix this on the server I had to add a / to the begining of each image and css url

however on the local machine this is not working. and it's quite a problem for working on my script.

i'm working in a sub directory so my file path is

localhost/mysite

the only way it works on the local machine is if i add mysite/  to the begining of the image url.

and i do have rewritebase set.

any ideas?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.