WebSite X5Help Center

 
Hakan S.
Hakan S.
User

Htaccess file editing and fixing  en

Autor: Hakan S.
Visitado 498, Followers 1, Compartido 0  

Hi,

How can i edit, add the code to the .htaccess file.

Because i need to add some codes for the cerificate to .htaccess file, i can add it to directly by txt editor. But Websitex5 changes it everytime according to it needs. Then my site cert not working.

I cannot find related answers in the community. Did you faced with the same issues?

Publicado en
4 RESPUESTAS - 2 úTIL
Claudio D.
Claudio D.
Moderator
Usuario del mes IT

we have already discussed this in other posts...

you have to put your instructions after all the WebsiteX5 section...

so here:

...so even if it overwrites, it does not change your additions.

Leer más
Publicado en de Claudio D.
Hakan S.
Hakan S.
User
Autor

Thanks Caludio,

I read your answer but not my direct answer of my question.

My main need is; i wanted to edit/add, aff the the; "-End Code"  line.
I mean, how can i add some codes etc, inside of the WebSiteX5 editor?

Because if i do it inside of the Websitex5, it better way to save my adding lines.

On the other hand, for the write or change something, i must use ftp program to dl .htaccess file from the server, than change the lines, than again upload the sama file and overwrite etc etc.

Can i change or edit these (After the - End Code) it better and easy way for me.

Thanks

Leer más
Publicado en de Hakan S.
Incomedia
Eric C.
Incomedia

Hello Hakan,
the file cannot be edited directly within Website X5 itself: you would need to retrieve it (either from the file explorer in Website X5 or other FTP tools), modify it with an editor, and then upload it again.

Eric

Leer más
Publicado en de Eric C.
Claudio D.
Claudio D.
Moderator
Usuario del mes IT

@Hakan,

As Eric has already said, you cannot edit from within the WebsiteX5 programme.
But you specified that you are already editing it via a TXT editor... so I specified how you should do it so as not to lose the content you added...

Leer más
Publicado en de Claudio D.