Hi guys,

I'm new to this and I would appreciate some of your expertise :-)

I'll let you know what I'm trying to do:

I have a small website with static pages and I just want to remove the extension .php from my files.
After lots of tries I came up with this

RewriteRule ^([A-Za-z0-9]+)/?$ $1.php [L]

That works fine when I type www.example.com/company but when I type www.example.com/company/ (slash at the end) I loose the css and the images.
Besides that when I type www.example.com/company/about or any other page on a folder other that root, I get a 404 not found page.

Could anyone help me solve this?

Thank you in advance :-)

9 Years
Discussion Span
Last Post by logonchristy

Me got the same issue...

can you post how you fixed it...

Waiting for your reply,

Advance thanx...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.