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 :-)

The problem is solved.

Thx :-)

Me got the same issue...

can you post how you fixed it...

Waiting for your reply,

Advance thanx...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.