WebSite X5Help Center

 
Andre E
Andre E
Moderator

.htacces file from x5  en

Author: Andre E
Visited 2575, Followers 1, Shared 0  

Why does x5 add this code to my .htaccess file?

# WebSite X5 - Start Code [do not edit]


# WebSite X5 - End Code

is it possible to set this permanatly off?

Why or better yet when is it needed and will there code set?

Posted on the
4 ANSWERS - 2 USEFUL
Paul M.
Paul M.
Moderator

Hi Andre,

The hash tags (#) denote comments in the .htaccess file and I suspect that they assist WebSite X5 when parsing the file, rather like markers.  As such I don't think you should remove them, although we'll see what Incomedia say.  They won't add any overhead to your .htaccess file.

The code between the comments (if any) will have been added as a result of you selecting one of the 'new' options in WebSite X5, such as enabling gzip compression in Step 1 Settings > Advanced > Statistics, SEO and Code

The comments are there to dissuade folks from deleting the code which WebSite X5 added to their .htaccess file, because then they might wonder why the new features weren't working.  These new features make use of server functionality as opposed to within WebSite X5 itself.  So the instructions in the .htaccess file are necessary as they tell the server what to do.

Hope this helps,

Paul

Read more
Posted on the from Paul M.
Andre E
Andre E
Moderator
Author

Yes, this helps,

and for the tags, i know,

still for other users as well it might give you a strange feeling if x5 say's during upload your .htaccess file will be modified. You can't refuse with uploading on that question as well.

I just wondered what code could be used and when. ( gzip has no change, no true code is added) Incomedia? Can you eleborate on codes used and when?

If there is never any danger of tempering with the code that is already there also the message might be more clear. Else it might confuse user's ( I am one of them at the start)  and i also could not find any information on this anywhere, so a helpdesk topic seemed logical.

Thanks Paul!

Read more
Posted on the from Andre E
Paul M.
Paul M.
Moderator

Yes, I know what you mean, Andre.

Are you sure about the following?

Andre E
( gzip has no change, no true code is added)

I just did a quick before and after test on a new project, and after selecting gzip compression the following code was added between the previously empty comments:

<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>

As a further test I then deselected gzip compression within WebSite X5, and reuploaded to the server once more.  On checking the .htaccess file the code had been removed whilst the comments remained.  So I think that the comments are definitely there to assist in parsing the file.

Read more
Posted on the from Paul M.
Andre E
Andre E
Moderator
Author

Well no change here, removed it, uploaded again, still no change with or withoud gzip.checked time/date stamp of the htacces file so i am sure got the correct file.

But i believe you.

Let's keep leave it for what it is, going to have a cup of thee know. I saw something else that needs testing also, will try that later.

Read more
Posted on the from Andre E