Jump to content

Website problems on Linux with .htaccess


evonet123

Recommended Posts

I have a website hosted on Fasthosts Linux servers. I am new to using .htaccess to do url rewrites and have been getting a recurring problem that is intimitent.

 

The problem is that now and then the images do not load, or the style sheet doesnt load, or the whole page doesnt load giving a 404 error (This applies to any page on the server). I am not 100% sure if this is due to the .htaccess file or FASTHOSTS servers, because we have never had any issues with their windows servers.

 

We previously had this issue with another website on one of their linux servers (which i just checked and its the same server) which had more rewrite rules than this project.

 

FASTHOSTS cant work out why its happening and we are stuck in a rut.

 

The htaccess files content is just the following:

 

RewriteEngine On

RewriteRule ^([a-zA-Z0-9_-]+)$ profile.php?id=$1 [NC]

 

 

The rule above simply allows people to view others profile by typing /username after the web address.

Example: http://www.muslimmarryme.com/azad

 

If you go to the site and browse around you may come across the problem.

 

If anyone can shed some light on this it would be very helpful.

 

 

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.