|
| > method 2.
> <Directory "/htdocs/vhosts/subdomain.domain.tld/public">
> RewriteEngine On
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L,NS]
> </Directory>
> Inside index.php you use the $_SERVER['REQUEST_URI'] to find out what
> the uri was before it was redirected to index.php you then write code
> that splits by '/' and use logic to populate your code. (removing the
> need to use $_GET) - you must validate the URI yourself, checking for
> user entered rubbish.
Hey, thanks. I used this method and it is working 
However Ive got a problem. I test this on a remote server and it works. I
have an apache 2 server installed in my Windows XP setup and I would like to
test this during development locally. Windows doesnt allow me to create
..htaccess file on my local drive. How can i overcome this one? 
I really would like to have the possibility of this trick working locally.
BTW:
Can You explain in 2 words what does those lines mean:
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . /index.php [L,NS]
? 
--
Byru
http://colsel.blitz-art.com
|
|