Page 1 of 1

.htaccess, don't understand why its not functioning

Posted: Mon May 12, 2008 7:14 pm
by definewebsites
Hi there,

I have the following entries in a .htaccess in the root of my website:

Code: Select all

 
RewriteEngine on
RewriteRule ^portfolio/([0-9])$ /portfolio/$1/ [R] 
RewriteRule ^portfolio/([0-9])/$ /portfolio.php?page=$1
 
It works when I enter this into the browser: mysite.com/portfolio

However, when I enter this: mysite.com/portfolio/2 , then I get an error message saying "No input file specified."

Any ideas?

Thanks

Re: .htaccess, don't understand why its not functioning

Posted: Mon May 12, 2008 9:10 pm
by JAB Creations
This is a PHP code forum, your post is about Apache, this I would recommend in the future when posting in regards to Apache to post in the Miscellaneous forum.

I'm ok with Apache though all I can guess is that you may already have a .htaccess file in your sub-directory that is overriding this one?