Skip to main content

I want to redirect except this folder csscss or jsjs or imageimage and it mustis not /working.

my code is below II have tried below code-

RewriteCond %{REMOTE_HOST} !^(css|js|image)
RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing worksBut it is not working.

Thanks in advance for any help.

I want to redirect except this folder css or js or image and it must not /

my code is below I tried

RewriteCond %{REMOTE_HOST} !^(css|js|image)
RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing works

I want to redirect except this folder css or js or image and is not working.

I have tried below code-

RewriteCond %{REMOTE_HOST} !^(css|js|image)
RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

But it is not working.

Thanks in advance for any help.

iI want to redirect except this folder csscss or jsjs or imageimage and it must not /

my code is below iI tried RewriteCond %{REMOTE_HOST} !^(css|js|image) RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

RewriteCond %{REMOTE_HOST} !^(css|js|image)
RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing works

i want to redirect except this folder css or js or image and it must not /

my code is below i tried RewriteCond %{REMOTE_HOST} !^(css|js|image) RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing works

I want to redirect except this folder css or js or image and it must not /

my code is below I tried

RewriteCond %{REMOTE_HOST} !^(css|js|image)
RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing works

Source Link
Lavanya E
  • 216
  • 2
  • 12

Redirect except this folder css or js or image

i want to redirect except this folder css or js or image and it must not /

my code is below i tried RewriteCond %{REMOTE_HOST} !^(css|js|image) RewriteRule ^([^/]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

and

RewriteRule ^([^(css|js|images|/)]+)/?$ find.php?term=$1&type=test&path=1 [L,QSA]

nothing works