.htaccess tutorial

htaccess Elite


.htaccess file changed by host?

Ask your mod_rewrite and Redirection questions here, and get answers!

.htaccess file changed by host?

New postby sinceurup » 20 Oct 2009 15:33

Anyways, I previously had a .htaccess file that whenever a file had no extension it went to the file anyways. Since there would be only one with that specific name.

I.E. page1.php you could just go to domain.com/page1 and it would load the page1.php
picture.png would load with just domain.com/picture

Currently the pictures still do it. However, the php files do not, it goes now to my 404 page.

Sorry if I wasn't very clear above.


right now the one I have most recently tried is:
Code: Select all
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.html$ $1.php [L]


Whenever I go to my pages it doesn't go to a 404 instead it says "No input file specified."
sinceurup
 
Posts: 1
Joined: 20 Oct 2009 15:28

Return to Redirect or Rewrite Questions