.htaccess mod_rewrite issue

Thread Solved
Reply

Join Date: Jun 2009
Posts: 2
Reputation: eliassot is an unknown quantity at this point 
Solved Threads: 0
eliassot eliassot is offline Offline
Newbie Poster

.htaccess mod_rewrite issue

 
0
  #1
Jun 2nd, 2009
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 :-)
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 2
Reputation: eliassot is an unknown quantity at this point 
Solved Threads: 0
eliassot eliassot is offline Offline
Newbie Poster

Re: .htaccess mod_rewrite issue

 
0
  #2
Jun 2nd, 2009
The problem is solved.

Thx :-)
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC