.htaccess - htaccess Cancel Rewrite Rule for Some Keywords -



.htaccess - htaccess Cancel Rewrite Rule for Some Keywords -

i wanted redirect domain.com/a-page-name domain.com/index.php?sayfa=a-page-name , used next code:

options +followsymlinks rewriteengine on rewriterule ^([a-za-z0-9\-]+)$ index.php?sayfa=$1 [l,nc]

but don't want redirect domain.com/pictures, domain.com/sources how can this?

you can that:

rewriteengine on rewritecond %{request_uri} !^/(?:pictures|sources)$ rewriterule ^([a-za-z0-9\-]+)$ index.php?sayfa=$1 [l,nc]

.htaccess mod-rewrite

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -