Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 10-30-2008, 05:29 PM
iusegator iusegator is offline
Hatchling Croc
 
Join Date: Jul 2008
Posts: 2
Default htaccess.a2migration.bak issue

Soomeone has edited .htaccess file in my server and created htaccess.a2migration.bak
My .htaccess file contained these lines:

Quote:
<IfModule mod_security.c>
SecFilterEngine Off
</IfModule>
Now my new edited .htaccess contains:
Quote:
<IfModule mod_security.c>

</IfModule>
It's important, without "SecFilterEngine Off" i cannot cloak/redirect links.
This error occurs when I try to follow a link on my webpage:

Quote:
You don't have permission to access /tracking202/redirect/cl2.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
When I added the line all worked well.

Have I to add this line again? Does Hostgator allow or prohibit to use the "SecFilterEngine Off"? Just wondering, because mostly all popular hosting providers allow it. Thanks in advance.
Reply With Quote
  #2  
Old 10-30-2008, 06:25 PM
kompreszor's Avatar
kompreszor kompreszor is offline
Swamp Croc
 
Join Date: Jun 2007
Location: Pennsylvania, USA
Posts: 330
Default Re: htaccess.a2migration.bak issue

You can no longer put security rules in the htaccess file, this is new since the upgrade to apache2. The migration.bak file is from the upgrade script, it parses your htaccess stripes out stuff that's not compatible with the new system and writes a new htaccess file. It then saves your original htaccess as htaccess.a2migration.bak.

If you need exceptions for your website you will need to ticket support and ask them to add them.
__________________
“There is a principle which is a bar against all information, which is proof against all arguments and which cannot fail to keep a man in everlasting ignorance—that principle is contempt prior to investigation.”
—Herbert Spencer
Reply With Quote
  #3  
Old 11-08-2008, 11:10 PM
Shifty Shifty is offline
Hatchling Croc
 
Join Date: Oct 2004
Posts: 27
Default Re: htaccess.a2migration.bak issue

FWIW, my .htaccess file was heavily modified after the migration, it went from 2 kB to 4 kB (lots of crap was added?). I use rewrite rules for Zenphoto, and it completely messed up the albums. I hadn't caught it until recently, and I simply put it my old .htaccess file from a backup and it works fine now.

Whatever scripts HG was using to update the .htaccess files didn't work so well on mine ...

I only found this out through searching through the forums, guess I need to monitor these forums more frequently. An email alert for important upgrades like this would be nice.
Reply With Quote
  #4  
Old 11-09-2008, 05:19 PM
slapshotw's Avatar
slapshotw slapshotw is offline
Veteran Croc
 
Join Date: Jun 2006
Posts: 5,164
Default Re: htaccess.a2migration.bak issue

You should file a ticket with support to alert them of their script gone wrong (maybe they can see the before and after) so they can make fixes for the future.
__________________
Follow me on Twitter! http://twitter.com/mrw
Reply With Quote
  #5  
Old 11-10-2008, 11:53 AM
ruigato ruigato is offline
Hatchling Croc
 
Join Date: Sep 2005
Location: Portugal
Posts: 17
Default Re: htaccess.a2migration.bak issue

i´m with hostgator for 2 years or so, with 2 reseller accounts, i´m really starting to look for another solution. The rules change all the time and we dont event get a warning? One day its all fine the other its all messed up and we dont event know what appened?
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with .htaccess and rewrite - any ideas douglerner Shared Hosting Support 5 10-10-2008 07:04 PM
.htaccess issue polarisdigital Shared Hosting Support 10 03-21-2008 08:10 AM
Issue using custom php.ini config file, can hostgator help to solve the issue ? jpck Shared Hosting Support 3 06-04-2007 01:29 PM
.htaccess jarod1981® Shared Hosting Support 2 03-04-2007 07:12 PM

All times are GMT -5. The time now is 06:45 AM.