Clean url's problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cgull
Forum Newbie
Posts: 7
Joined: Wed Apr 09, 2008 6:11 am

Clean url's problem

Post by Cgull »

Hi,

I'm trying to create clean url's for a site I'm working on.

This is the first time I'm trying to use clean url's and got very confused.

It's working fine on my local machine where the url is: http://ruthrudindesigns.com/content/about
My files sturcture is:
c:\wamp\www\ruthrudindesigns\content\about.php

My local htaccess file looks like this:

RewriteEngine On
RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.php [L]

But on my online testing server, I can't make it work, I get the error:
Error 404 Page Not Found
The requested URL /ruthrudindesigns/content/about was not found on this server.

The address there is: http://sigalz.co.za/ruthrudindesigns/content/about
The files structure:
/public_html/ruthrudindesigns/content/about.php

My online htaccess file looks like that:

RewriteEngine On
RewriteRule ^([a-z]+)/([a-z\-]+)/([a-z\-]+)$ /$1/$2/$3.php [L]

Can someone please help me with that?

What am I missing?

Thank you,

Cgull
Oxidiser
Forum Newbie
Posts: 15
Joined: Wed Feb 18, 2009 5:00 am
Location: The Netherlands

Re: Clean url's problem

Post by Oxidiser »

That should work. Are you sure mod_rewrite is installed on the server?
Post Reply