funnymoney
03-15-2009, 10:52 AM
My script is on localhost in file script.php
When i call it either with
http://script_path/
or
http://script_path/script.php
it returns the same page
Now i have a set of links
http://script_path/script.php/home
http://script_path/script.php/tv-shows
http://script_path/script.php/theater
etc..
each of those links shows something different
Is it possible to write some kind of .htaccess file so that those links become same as
http://script_path/home
http://script_path/tv-shows
http://script_path/theater
etc..
and if someone directly types
http://script_path/script.php
or
http://script_path/script.php/home
he gets 404 error
thank you
When i call it either with
http://script_path/
or
http://script_path/script.php
it returns the same page
Now i have a set of links
http://script_path/script.php/home
http://script_path/script.php/tv-shows
http://script_path/script.php/theater
etc..
each of those links shows something different
Is it possible to write some kind of .htaccess file so that those links become same as
http://script_path/home
http://script_path/tv-shows
http://script_path/theater
etc..
and if someone directly types
http://script_path/script.php
or
http://script_path/script.php/home
he gets 404 error
thank you