Hi guys,
I have two questions,
First Question:
I'd like to use htaccess to do the following, take either:
www. site .com/var
and
www. site .com/var/
and
www. site .com/var/var2
and
www. site .com/var/var2/
to the following in htaccess file:
www. site .com/page.php?s=var&v=var2
I cannot work the above out 🙁 i do not know how to deal with the "/" at the end, or how to get the variables to the php page.
Second Question:
Is it possible to get a php page to check itself, and only load if it has been "included" from another php page on your site?
So if i tried to load this page:
www. site .com /subpage.php it wouldnt work, but if i tried to include it: "include("subpage.php"), that would be allowed???
Thanks fo much for answering either questions!
Regards,