Jump to content

Recommended Posts

Posted (edited)

Hi everyone, apologies if this is a repeat: I did some diving into old archives and didn't see anything that might help me with this issue. (Of course, I have a killer headache, so I'm sorry if I'm missing something obvious.)

 

Anyway, I got the following error message when I tried to create a redirect:

 

Apache detected an error in the Rewrite config.

 

Syntax error on line 17 of /home/***/public_html/.htaccess.I_7mrQLIkUjKrDUMMbriiZA85tgyNI57:

Missing directive at end-of-file

 

Please try again.

 

This is from my .htaccess file (site name and username replaced with generic name:

># -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.domain.com
AuthUserFile /home/username/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/username/public_html/_vti_pvt/service.grp

<IfModule mod_security.c>
   SecFilterEngine Off
   SecFilterScanPOST Off
</IfModule>

 

I just want to do a very simple redirect, where I'm redirecting from the domain name directly to a specific archive page on a blog; the address will look something like this: http://www.domain.com/blog/home/

 

Any ideas how I might get this done? Thanks in advance for any help you can offer!

~Zee

Edited by TCH-Thomas
Edited out user sensitive info.
Posted

Do you use FrontPage at all ?

 

If not, I'd suggest removing the FrontPage extensions ( you can do this from cpanel ) which will tidy up your .htaccess file, and then do the redirect.

 

If that fails, please open a ticket, and we'll clear things for you.

Posted

CPanel gives this warning:

 

Installing or uninstalling Frontpage Extensions will result in the loss of all ".htaccess" files in your web area. Any changes you have made to your ".htaccess" files will be lost. Any directories you have protected with WebProtect will become unprotected until you reprotect them.

 

Does this suggest you need to know your way around what .htaccess changes are FrontPage related and which are not?

 

I had some re-directs installed by support that I may not want to lose after removing FP extensions and I don't know what lines are related to what.

 

Thanks

 

Do you use FrontPage at all ?

 

If not, I'd suggest removing the FrontPage extensions ( you can do this from cpanel ) which will tidy up your .htaccess file, and then do the redirect.

Posted

Before installing or uninstalling FP extensions it would be wise to make a backup of your current .htaccess files. You can then easily copy/paste anything that gets removed that you did not want removed.

Posted

Kevan,

 

If you have other things in your cpanel, then as Bruce says, take a backup and replace the none FrontPage parts,

 

In the case of Zee's htaccess though, she mainly has just the frontpage settings in there - hence my suggestion to remove them.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...