3 replies
I'm trying to upload some files for some one who has about a page and a half full of redirects in htaccess.

He will probably need an expert eventually to decipher the mess.
What I want to do for now is add commands to remove redirects from 2 folders.
Assuming domainname/subfolder1 and domainname/subfolder2
how do I cancel redirects for these two folders?

I think this is the problem as I can see the files in ftp but when I go to where they should be in a browser I get a 404 error. (I'm sure I'm in the right place as I'm converting from the ftp address the same wayI've done on dozens of other sites)
#htacess #question
  • Profile picture of the author SteveSRS
    there is no command to remove redirects..

    you need to find the htaccess lines in the mess and remove those lines..
    Look for something like:
    RewriteRule /somefolder /tofolder [r=301]
    {{ DiscussionBoard.errors[8212614].message }}
    • Profile picture of the author rhinocl
      Originally Posted by SteveSRS View Post

      there is no command to remove redirects..

      you need to find the htaccess lines in the mess and remove those lines..
      Look for something like:
      RewriteRule /somefolder /tofolder [r=301]
      I thought adding an htacess file in the subfolder like this should have turned off all rwrites and redirects within the folder?
      Code:
       ## turn off rewrite engine
          RewriteEngine Off
       ##turn off redirects
       RedirectControl Off
      {{ DiscussionBoard.errors[8214461].message }}
      • Profile picture of the author RobinInTexas
        Originally Posted by rhinocl View Post

        I thought adding an htacess file in the subfolder like this should have turned off all rwrites and redirects within the folder?
        Code:
         ## turn off rewrite engine
            RewriteEngine Off
         ##turn off redirects
         RedirectControl Off
        That won't work, you need to find any and all .htaccess files on the site and fix each one so that they do what is desired..
        Signature

        Robin



        ...Even if you're on the right track, you'll get run over if you just set there.
        {{ DiscussionBoard.errors[8216181].message }}

Trending Topics