Apache Server configuration support - Re: .htaccess config

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > November 2006 > Re: .htaccess config





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: .htaccess config
Byru

2006-11-20, 7:23 pm

> 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

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com