943,836 Members | Top Members by Rank

Jun 2nd, 2009
0

.htaccess mod_rewrite issue

Expand Post »
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 :-)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eliassot is offline Offline
2 posts
since Jun 2009
Jun 2nd, 2009
0

Re: .htaccess mod_rewrite issue

The problem is solved.

Thx :-)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
eliassot is offline Offline
2 posts
since Jun 2009
Feb 25th, 2010
0

.htaccess mod_rewrite issue

Me got the same issue...

can you post how you fixed it...

Waiting for your reply,

Advance thanx...
Reputation Points: 10
Solved Threads: 2
Light Poster
logonchristy is offline Offline
42 posts
since Apr 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: My Interview with Devil Mountain's Craig Barth
Next Thread in Linux Servers and Apache Forum Timeline: Is Microsoft the New SCO?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC