Home How to use RewriteRule in htaccess using XAMPP
Reply: 0

How to use RewriteRule in htaccess using XAMPP

user909 Published in April 22, 2018, 12:51 am

How do I get rid of the folder name using .htaccess and XAMPP.

I saved the folder in --> xampp/htdocs/myproject

In myproject folder there are an index.php and .htaccess files.

RewriteEngine On
RewriteBase /myproject/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]





This redirects me to the index file but when i var_dump requested uri i'm getting also myfoler name.



i'm getting -->/myproject/contact

Is this possible to get rid of this foldername/path using .htaccess ? In this case the /myproject/.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298256 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO