Website problems on Linux with .htaccess

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
evonet123
Forum Newbie
Posts: 2
Joined: Sun Sep 14, 2008 9:32 am

Website problems on Linux with .htaccess

Post by evonet123 »

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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Website problems on Linux with .htaccess

Post by pickle »

If it's just here & there - it's almost certainly not .htaccess . Apache & .htaccess are pretty consistent & bullet proof. I'd look at the host/server.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply