.htaccess - Exclude Subfolders from Rewrite rule htaccess -


I have a blog page on my website and .htaccess SEO is down to convert to friendly URL

< Pre> Rewrite rules ^ ([^ /.] +) /? $ / Blogdetail? Prmn = $ 1 [L]

Then, my URL becomes the http: // com / title-of-blog and this I am working very fine and terrible but my client told here today that the administrator section is not working properly and I have checked that the URL http://example.com/admin < / P>

How do I googled admin to remove http://example.com/admin ? Prmn = admin / code> folder again, then I went down

  rewrite ^ admin ( $ | /) - [L]  

When I use it, then when I type http://example.com/admin and then I htaccess I'm getting the error page defined in

Please help me complete Htaccess as below

  Option + Rewrite on follow-up link rearrangement engine ^ admin ($ | /) - [L] Rev.% { THE_REQUEST} ^ [AZ] {3} / index \ .php RewriteRule ^ index \ .php $ / [L, R = 301] rewrite% {THE_REQUEST} ^ [AZ] {3,9} \ / indexRewriteRule ^ index \ .php $ / [L, R = 301] RewriteCond% {HTTP_HOST} ^ Example .com $ [NC] RewriteRule ^ (. *) $ Http://www.example.com/$1 [L, R = 301] #php rewritecode from URL #% {REQUEST_FILENAME} .php -f rewrite% {REQUEST_URI}! / $ Rewrite rule (. *) $ 1 \ .php [L] # Restricted .php rewrite% {THE_REQUEST} ^ [AZ] {3,9} \ / [^ \] + \ .php ($ | \) RewriteRule Remove \ .php $ / [F, L] # HTML rewrite convert% {REQUEST_FILENAME}! -f rewrite% {REQUEST_FILENAME}! -D RectiteAril. ^ ([^ /.] +) \. HTML $ / $ 1 [L, R = 301] reverted arrow ^ ([^ /.] +) /? $ / Blogdetail? Prmn = $ 1 [L] error document 404 / error-page error document 403 / error-page error document 500 / error-page  

I think there is another rule that does something with / admin , but because you're using that second rule , It will never reach that rule. Instead use a condition to exclude anything that starts with the administrator, besides Please note that the rule will rewrite it on / blogdetail / prmn = admin , so something else has been written.

  Rewrite% {REQUEST_URI}! / / Redrite arrow ^^ ([^ /.] +) /? $ / Blogdetail? Prmn = $ 1 [L]  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -