You are here: Help with mod_rewrite « PHP Programming Language « IT news, forums, messages
Help with mod_rewrite

Posted by Hermann.Richter on 10/18/06 21:13

I want to rewrite URLs like
http://domain/dir/file.php?var1=val1&var2=val2#anchor

to
http://domain/dir/file?var1=val1&var2=val2#anchor

In other words, I want to strip out the php extension

I tried putting in the .htaccess file the following:

DefaultType application/x-httpd-php

But that didn't work at all.

So I tried with mod_rewrite:

RewriteRule /[^/\.]+$ %{REQUEST_FILENAME}.php

It doesn't work either!!!

I need help please. What is the problem??

My hosting server is apache 1.3.37


Thanks in advance.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация