help me url rewriting !
Posted: Tue Mar 15, 2005 12:38 am
i am using hn_urlrewrite.class.php and tying url rewrite script/class and having some problems using
it.
first of all i want to know :
what is htaccess-password protected script?
what is a registered_scripts array?
which is the DEFAULT MODE of rewriting all URLs
what is own serverhost?
--------------------------------------------------
4) How to configure the webserver
In the root directory you need a htaccess file with an entry like:
<Files goto>
ForceType application/x-httpd-php
</Files>
where 'goto' is the name of the rewrite-script, which resides also
in the root dir. In class configuration you have to register this
scriptname also in constant named: URL_REWRITE_SCRIPT, but here
you must add the leading slash: define('URL_REWRITE_SCRIPT','/got');
This forces apache to call the rewriter script for every request,
beginning with /goto. ????????????
what is goto?
define('URL_REWRITE_SCRIPT','/got'); ?? what is this?
-----------------------------------------------------
what this hader will do?
it.
first of all i want to know :
what is htaccess-password protected script?
what is a registered_scripts array?
which is the DEFAULT MODE of rewriting all URLs
what is own serverhost?
--------------------------------------------------
4) How to configure the webserver
In the root directory you need a htaccess file with an entry like:
<Files goto>
ForceType application/x-httpd-php
</Files>
where 'goto' is the name of the rewrite-script, which resides also
in the root dir. In class configuration you have to register this
scriptname also in constant named: URL_REWRITE_SCRIPT, but here
you must add the leading slash: define('URL_REWRITE_SCRIPT','/got');
This forces apache to call the rewriter script for every request,
beginning with /goto. ????????????
what is goto?
define('URL_REWRITE_SCRIPT','/got'); ?? what is this?
-----------------------------------------------------
Code: Select all
<?PHP
header("Cache-control: private");
?>