.htaccess - Using htaccess to show files from an inner directory -


this local dir structure

-> app   -> settings   -> readme   -> php     -> entire app code 

now since app code in php/ dir, have localhost/app/php access app. access files in php/ dir justing typing localhost/app.

thanks :)

put code in document_root/.htaccess file:

rewriteengine on  rewriterule ^((?!php/).*)$ php/$1 [l,nc] 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -