apache - htaccess: stop htaccess work in all folder -



apache - htaccess: stop htaccess work in all folder -

i need help in htaccess code

rewriterule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [l,qsa,nc]

this code alter rewrite urls from

/test-post-name

/index.php?url=test-post-name

but impact folders

mean

i have vb in path

site.com/vb

but url apper like

site.com/vb/?url=

how can prepare this

to site.com/vb/index.php or site.com/vb

the next rewrite take place if request not points valid directory or file:

rewriteengine on rewritebase / rewritecond %{script_filename} !-f rewritecond %{script_filename} !-d rewriterule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [l,qsa,nc]

to disable rewrites within /vb folder add together .htaccess folder , turn of rewrite engine:

rewriteengine off

apache .htaccess mod-rewrite

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -