How to fix!--No input file specified

Discuss practical ways rearrange URLs using mod_rewrite.

How to fix!--No input file specified

Postby Ryan300 » Sat May 24, 2008 4:23 pm

Hi, I need help doing to following:
Code: Select all
RewriteRule ^/([a-zA-Z]+)/([a-zA-Z]+)$ /$1.php?do=$2

I want it to take mysite.com/somepage/whatToDo/ and make it somepage.php?do=whatToDo.
When I tried it, it says "No input file specified.".

I tried to the with only one "([a-zA-Z]+)", like
Code: Select all
RewriteRule ^/([a-zA-Z]+)$ /$1.php
And that worked, but it doesnt work with 2.


***EDIT***
After a while on google, I found this. http://forums.pligg.com/installation-up ... ified.html

Basically, it says add
Code: Select all
Options -MultiViews
to your .htaccess file. Thats fixed it for me.
Ryan300
 
Posts: 1
Joined: Sat May 24, 2008 4:16 pm

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 2 guests

cron