954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

.htaccess mod_rewrite issue

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

eliassot
Newbie Poster
2 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

The problem is solved.

Thx :-)

eliassot
Newbie Poster
2 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Me got the same issue...

can you post how you fixed it...

Waiting for your reply,

Advance thanx...

logonchristy
Light Poster
42 posts since Apr 2009
Reputation Points: 10
Solved Threads: 2
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: