WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Htaccess Files Are Deleted Every Time Website Is Uploaded  en

Autor: Giulio V.
Visitado 2067, Seguidores 2, Compartilhado 0  

Every time I Upload my website I found that the program totally deletes everything in my Htaccess file.

Everything is Gone, all my re-directs, etc. which now is causing all the work we have done to improve my website is all lost. This is a really serious problem.

How can this be? Is this something in the latest update that is creating this unfortunate problem? How did it get implemented without our knowledge? 

I need this to Never Change My HTACCESS File.

If someone can refer the code to make this stop or knows of any way to prevent this from happening ever again, please let me Know as Soon As Possible.

If there is a fix please let me know the Exact Procedure, with all details How, And Where To Place The Code.

This is really disappointing, how the program started this without our knowledge.

But now, how do we Stop this from ever deleting all our Htaccess files.

Thank you to all respondents. 

Publicado em
32 RESPOSTAS - 4 ÚTEIS - 1 CORRIGIR
Esahc ..
Esahc ..
Moderator

Giulio, can you show here the .htaccess file as you require it before it is obliterated by WX5

To the best of my knowledge WX5 should only modify entries within it's allocated area.

Ler mais
Publicado em de Esahc ..
Giulio V.
Giulio V.
User
Autor

Hi Esahc

All I know is everything in the Htaccess file is wiped out when I upload the website. It appears I am not the only one experiencing this problem. I thinkmany users will find out soon that this has happened to them. I would have never known about this until my SEO consultant found this.

We noticed a box showing up when we went to upload my website that said the contents in the Htaccess file will be updated. I have never seen this before, so there is definitely something strange going on here.

It eliminates all my 301 re-directs.

I noticed a couple of folks responded to other users about this and provided a code to permanetly stop this from happening again. Before I try that approach I want to be sure there will not be any conflict.

Claudio D responded to a user to do this. it doesn't matter... it's normal for me to tell you that. I think you have, more or less, put the site under maintenance. surprised if so... and you're okay with that... the index.php page should be deleted the index.html page should be left

https://www.orticolazappa.it/index.html

Another option Claudio D gave, (Please see attached photo.) so which way do I go?

Thank you for your help

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

Non guardare la parte relativa alla index.php e alla index.html... perchè era una risposta specifica di quel caso...

Per l'htaccess:

DEVI mettere le tue istruzioni DOPO il codice che inserisce WEBSITE X5 e vedrai che anche se ti avvisa in fase di esportazione... le tue istruzioni NON verranno cancellate...

Ler mais
Publicado em de Claudio D.
Giulio V.
Giulio V.
User
Autor

Hi Claudio

Thank you for your quick response.

Could you please, send me the code so I can be able to copy it and send it to our person that will do this for me.

Thank you so much.

PS. But what brought on this change in the first place?  Is it an error in the software? Or is it something that is intentional and for what reason? 

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

Il codice cambia a seconda delle funzionalità che abiliti in websiteX5.

Se esporti il tuo sito, Website scrive le sue istruzioni sull'htaccess..

a quel punto il tuo "specialista" dovrà semplicemente mettere le sue istruzioni DOPO tutto ciò che ha scritto Website... 

Non ci sono errori in questo... è così da quando è stata introdotta la funzionalità della pagina 404, basta seguire questa procedura.

Ler mais
Publicado em de Claudio D.
Martin P.
Martin P.
User
Giulio V.
Another option Claudio D gave, (Please see attached photo.) so which way do I go? Thank you for your help

Hi Giulio,

the text in the messages box could be easily misunderstood. X5 don't overwrite the .htaccess file, it reads it first, to find the relink of the 404error page at the beginning. If it is not there, it adds 4 lines at the top and leaves anything else untouched. This will only happen if you design your own error404 page in the sitemap and mark it as an error404 page in the menu bar. The quick fix is to remove this marking ?Seite 404 (sorry it is in German, it means page 404):

But I never had the problem that the .htaccess file is deleted or modified in another way. I use the complete 7G Firewall without any problems and also use redirects for my other error pages. Maybe it helps, to reset the file access rights for the .htaccess file to its default settings.

# WebSite X5 - Start Code [do not edit]

ErrorDocument 404 /error404.html

# WebSite X5 - End Code
Options -Indexes
ErrorDocument 400 /customerrors/400.html
ErrorDocument 401 /customerrors/401.html
ErrorDocument 403 /customerrors/403.html
ErrorDocument 500 /customerrors/500.html

#opt-out of FLOC data collection
Header set Permissions-Policy "interest-cohort=()"

# 7G FIREWALL v1.5 20211103
# @ https://perishablepress.com/7g-firewall/

# 7G:[CORE]
ServerSignature Off
Options -Indexes
RewriteEngine On
RewriteBase /

# [Force https]
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

# 7G:[QUERY STRING]
<IfModule mod_rewrite.c>

RewriteCond %{QUERY_STRING} ([a-z0-9]{2000,}) [NC,OR]

......

Best regards

Martin

Ler mais
Publicado em de Martin P.
Giulio V.
Giulio V.
User
Autor

Hi Martin

I don't have a 404 error page. So what approach do you recommend I should take to resolve this?

Should I go ahead and enter this code?

# WebSite X5 - Start Code [do not edit]

ErrorDocument 404 /error404.html

# WebSite X5 - End Code

Where exactly should this code be placed? I have to send it to someone to do this for me.

Thank you for help.

Ler mais
Publicado em de Giulio V.
Giulio V.
Giulio V.
User
Autor

Hi Martin

I don't have a 404 error page. So what approach do you recommend I should take to resolve this?

Should I go ahead and enter this code?

# WebSite X5 - Start Code [do not edit]

ErrorDocument 404 /error404.html

# WebSite X5 - End Code

Where exactly should this code be placed? I have to send it to someone to do this for me.

Thank you for your help.

Ler mais
Publicado em de Giulio V.
Martin P.
Martin P.
User
Giulio V.
Hi Martin I don't have a 404 error page. Should I go ahead and enter this code? # WebSite X5 - Start Code [do not edit] ErrorDocument 404 /error404.html # WebSite X5 - End Code Where exactly should this code be placed? I have to send it to someone to do this for me. Thank you for your help.

Hi Giulio,

that is strange. Please select every page in your sitemap and check if this page404 button is enabled for it. Maybe you selected it accidently during the designing, but you won't find the page, without select it before.

Regarding the code, that is placed in the top four lines of an existing .htaccess file, while the other content is moved down. So your code should start at line 5.

In my opinion it makes no sense to add this code, because error404.html is my name for the error page in the sitemap. If you don't have created your own customized error404.html file, it will issue again and again an 404 File not found error in a loop. If you don't add at customize 404page, the standard server note will pop up by the way.

I think the goal is, to find the entry in the sitelist, which has this page404 mark. Normally it must be there somewhere.

Ler mais
Publicado em de Martin P.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT
Giulio V.
Could you please, send me the code so I can be able to copy it and send it to our person that will do this for me.

@Giulio... 

devi solo dire al tuo "specialista" di mettere il suo codice, DOPO, quello inserito da WebsiteX5 e che troverà nell'htaccess che è già presente sul tuo Host... 

tutto lì... 

Ler mais
Publicado em de Claudio D.
Martin P.
Martin P.
User

Hi Giulio,

I forgot to mention that the .htaccess file is and should be in UNIX format. The difference is that unix only has the line feed h#0A character, why WIN uses carriage return and line feed together to separate lines. Therefore it is not a good idea to edit the .htaccess file with notepad.

Ler mais
Publicado em de Martin P.
Giulio V.
Giulio V.
User
Autor

Ok. I've just followed all your instructions, added the code, and, after upload, X5 is still removing all the contents of my .htacess file. Also, I've only edited the .htaccess file directly on my server (by clicking edit) and it's still removing everything when I'm uploading. 

How do I disable the "X5 Will Modify the Contents of Your .htaccess file" prompt? Is that possible?

Here's the exact code of my current .htaccess file:

# WebSite X5 - Start Code [do not edit]

 

<IfModule mod_deflate.c>

SetOutputFilter DEFLATE

</IfModule>

 

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST} ^(www\.)?prolinesystems\.net

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R,L]

 

# This is the code that Starts X5

 

RewriteCond %{HTTP_HOST} ^www.prolinesystems.net$

RewriteCond %{SERVER_PORT} ^443

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R=301]

ErrorDocument 404 /error404.html

 

## 301 Redirects ##

Redirect 301 /the-rail-saver-tool.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /contact-us-.html https://prolinesystems.net/contact-us.html

Redirect 301 /ksfhsjh https://prolinesystems.net/

Redirect 301 /landing-page.html https://prolinesystems.net/

Redirect 301 /human_video.html https://prolinesystems.net/

ErrorDocument 404 https://prolinesystems.net/

Redirect 301 /compuspot_180al_aluminum_dent_puller.html https://prolinesystems.net/compuspot-180al-aluminum-dent-puller.html

Redirect 301 /compuspot_850.html https://prolinesystems.net/compuspot-850.html

Redirect 301 /djs_car_parts_rack.html https://prolinesystems.net/djs-car-parts-rack.html

Redirect 301 /electronic_measuring.html https://prolinesystems.net/electronic-measuring.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps.html

Redirect 301 /hydraulic_pump_and_jacks.html https://prolinesystems.net/hydraulic-pump-and-jacks.html

Redirect 301 /spectratek_bulbs_parts.html https://prolinesystems.net/spectratek-bulbs-parts.html

Redirect 301 /the_rail_saver.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /tru-line_training_videos.html https://prolinesystems.net/tru-line-training-videos.html

Redirect 301 /ultracut_40_plasma_cutter.html https://prolinesystems.net/ultracut-40-plasma-cutter.html

Redirect 301 /uni-power_pulling-post.html https://prolinesystems.net/uni-power-pulling-post.html

Redirect 301 /universal_truck_clamps_.html https://prolinesystems.net/universal-truck-clamps.html

Redirect 301 /used_equipment.html https://prolinesystems.net/used-equipment.html

Redirect 301 /welder_parts.html https://prolinesystems.net/welder-parts.html

Redirect 301 /aim-hybrid-battery-spot-welder.html https://prolinesystems.net/spot-welders.html

Redirect 301 /page-144.html https://prolinesystems.net/

Redirect 301 /uni-ram-gun-washers.html https://prolinesystems.net/

Redirect 301 /nitrogen-plastic-welder--polyvance-6080-cg-.html https://prolinesystems.net/nitrogen-plastic-welder-polyvance-8203-.html

Redirect 301 /ez-frame-clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /car_moving_dollies.html https://prolinesystems.net/car-moving-dollies-by-djs-fabrications.html

Redirect 301 /ford-approved-self-piercing-rivet-gun---cmo-ep-rv02.html https://prolinesystems.net/ford-approved-self-piercing-rivet-gun---cmo-rv-ep02.html

Redirect 301 /mig_welders.html https://prolinesystems.net/mig-welders.html

Redirect 301 /leasing__financing.html https://prolinesystems.net/financing.html 

Redirect 301 /compuspot_advanced_150.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /blueboy_pipe_benders.html https://prolinesystems.net/blueboy-pipe-benders.html

Redirect 301 /used-equipment.html https://prolinesystems.net/

Redirect 301 /body_buddy_xl.html https://prolinesystems.net/frame-machines.html

Redirect 301 /uni-power-pulling-post.html https://prolinesystems.net/body-loc-pulling-equipment.html

Redirect 301 /portaspot-ps2002.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /spectratek-2400400-uv-lamp.html https://prolinesystems.net/spectratek-uv-led-curing-lamps.html

Redirect 301 /aluminum-pulse-mig-welder.html https://prolinesystems.net/mig-welders.html

Redirect 301 /plastic-welder-polyvance-6085-nitro-fuzer.html https://prolinesystems.net/plastic-welder-polyvance-8201-nitro-fuzer.html

Redirect 301 /stat-gun---auto-body-static-remover.html https://prolinesystems.net/stat-gun-auto-body-static-remover.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /blog/?tag= https://prolinesystems.net/blog/

Redirect 301 /spectratherm_8000s.html https://prolinesystems.net/spectratherm-8000sd-.html

# WebSite X5 - End Code

Ler mais
Publicado em de Giulio V.
Giulio V.
Giulio V.
User
Autor

Another thing we noticed was the X5 wasn't doing these issues until the most recent software update. As soon as I updated the software and uploaded the site to the internet, these issues started happening.

Can you guys login to my GoDaddy and help me fix and/or diagnose the problem? I could you give delegate access via GoDaddy.

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

??? ma no..

mi pareva di essere stato chiaro... (se ti aggiunge lui un 404, significa che hai abilitato la pagina 404 nel progetto)

il tuo codice va messo DOPO quello di WebsiteX5 quindi il tuo htaccess modificalo così:

# WebSite X5 - Start Code [do not edit]

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

# WebSite X5 - End Code

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST} ^(www\.)?prolinesystems\.net

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R,L]

RewriteCond %{HTTP_HOST} ^www.prolinesystems.net$

RewriteCond %{SERVER_PORT} ^443

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R=301]

## 301 Redirects ##

Redirect 301 /the-rail-saver-tool.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /contact-us-.html https://prolinesystems.net/contact-us.html

Redirect 301 /ksfhsjh https://prolinesystems.net/

Redirect 301 /landing-page.html https://prolinesystems.net/

Redirect 301 /human_video.html https://prolinesystems.net/

ErrorDocument 404 https://prolinesystems.net/

Redirect 301 /compuspot_180al_aluminum_dent_puller.html https://prolinesystems.net/compuspot-180al-aluminum-dent-puller.html

Redirect 301 /compuspot_850.html https://prolinesystems.net/compuspot-850.html

Redirect 301 /djs_car_parts_rack.html https://prolinesystems.net/djs-car-parts-rack.html

Redirect 301 /electronic_measuring.html https://prolinesystems.net/electronic-measuring.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps.html

Redirect 301 /hydraulic_pump_and_jacks.html https://prolinesystems.net/hydraulic-pump-and-jacks.html

Redirect 301 /spectratek_bulbs_parts.html https://prolinesystems.net/spectratek-bulbs-parts.html

Redirect 301 /the_rail_saver.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /tru-line_training_videos.html https://prolinesystems.net/tru-line-training-videos.html

Redirect 301 /ultracut_40_plasma_cutter.html https://prolinesystems.net/ultracut-40-plasma-cutter.html

Redirect 301 /uni-power_pulling-post.html https://prolinesystems.net/uni-power-pulling-post.html

Redirect 301 /universal_truck_clamps_.html https://prolinesystems.net/universal-truck-clamps.html

Redirect 301 /used_equipment.html https://prolinesystems.net/used-equipment.html

Redirect 301 /welder_parts.html https://prolinesystems.net/welder-parts.html

Redirect 301 /aim-hybrid-battery-spot-welder.html https://prolinesystems.net/spot-welders.html

Redirect 301 /page-144.html https://prolinesystems.net/

Redirect 301 /uni-ram-gun-washers.html https://prolinesystems.net/

Redirect 301 /nitrogen-plastic-welder--polyvance-6080-cg-.html https://prolinesystems.net/nitrogen-plastic-welder-polyvance-8203-.html

Redirect 301 /ez-frame-clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /car_moving_dollies.html https://prolinesystems.net/car-moving-dollies-by-djs-fabrications.html

Redirect 301 /ford-approved-self-piercing-rivet-gun---cmo-ep-rv02.html https://prolinesystems.net/ford-approved-self-piercing-rivet-gun---cmo-rv-ep02.html

Redirect 301 /mig_welders.html https://prolinesystems.net/mig-welders.html

Redirect 301 /leasing__financing.html https://prolinesystems.net/financing.html

Redirect 301 /compuspot_advanced_150.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /blueboy_pipe_benders.html https://prolinesystems.net/blueboy-pipe-benders.html

Redirect 301 /used-equipment.html https://prolinesystems.net/

Redirect 301 /body_buddy_xl.html https://prolinesystems.net/frame-machines.html

Redirect 301 /uni-power-pulling-post.html https://prolinesystems.net/body-loc-pulling-equipment.html

Redirect 301 /portaspot-ps2002.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /spectratek-2400400-uv-lamp.html https://prolinesystems.net/spectratek-uv-led-curing-lamps.html

Redirect 301 /aluminum-pulse-mig-welder.html https://prolinesystems.net/mig-welders.html

Redirect 301 /plastic-welder-polyvance-6085-nitro-fuzer.html https://prolinesystems.net/plastic-welder-polyvance-8201-nitro-fuzer.html

Redirect 301 /stat-gun---auto-body-static-remover.html https://prolinesystems.net/stat-gun-auto-body-static-remover.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /blog/?tag= https://prolinesystems.net/blog/

Redirect 301 /spectratherm_8000s.html https://prolinesystems.net/spectratherm-8000sd-.html

Ler mais
Publicado em de Claudio D.
Daniel W.
Daniel W.
User
Usuário do mês EN

I only have the Evo version and with it I created the 404 page (404.html) via 3 sitemap, so a normal page with the 404 notice and just marked that 404 page as "hidden", nothing else.

For me, WebSite X5 doesn't tamper with the self-created .htaccess.

Ler mais
Publicado em de Daniel W.
Giulio V.
Giulio V.
User
Autor

Hi Claudio, If you could answer in English it will be appreciated.

We tried installing the code and it did not stop deleting all our 301 redirects etc.

It is possible we are unsure exactly where to add the code. Can you identify for us after which line this code needs to be placed? Please provide the exact information and a photo that shows exactly where we need to place the code.

I am sorry to keep this thread going, and I respect the help from you and the other users input, but we don't have the experience that you all have.

It sounds easy from your side, but we don't fully understand how to do this. So if we can get explicit information is Very Much appreciated.

PS. This issue never happened before until the latest Update, does incomedia know about this?

Thank you

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

@Giulio

but what browser do you have ?


I wrote in Italian since all modern browsers allow right-clicking on the page to have the translation of the whole page immediately.

I too have an htaccess with about 30 lines of code added by me... but WebsiteX5 NEVER deleted those lines for me.

The image of how to do it I already put it to you before...., didn't you see it ?

If Website changes your code it is because you have enabled 404 page or compression , but if you put your code as stated, that is, AFTER Website's code, your code will NOT be deleted.

With this post, I close, sorry maybe I am not clear enough since you don't understand me at all....

Hello. Good work.

================

@Giulio

ma che browser hai ?
ho scritto in italiano dato che tutti i moderni browser permettono cliccando col destro del mouse nella pagina di avere immediatamente la traduzione di tutta la pagina stessa.

Anche io ho un htaccess con una trentina di righe di codice aggiunto da me... ma WebsiteX5 NON mi hai MAI cancellato quelle righe.

L'immagine di come fare te lo già inserita prima...., non l'hai vista ?

Se Website ti modifica il codice è perchè hai attivato la pagina 404 oppure la compressione , ma se metti il tuo codice come detto, cioè DOPO il codice di Website, il tuo codice NON verrà cancellato.

Con questo post, io chiudo, scusa forse non sono abbastanza chiaro visto che non mi comprendi minimamente...

Ciao. Buon lavoro.

Ler mais
Publicado em de Claudio D.
Martin P.
Martin P.
User
Giulio V.
Here's the exact code of my current .htaccess file: # WebSite X5 - Start Code [do not edit]   <IfModule mod_deflate.c> SetOutputFilter DEFLATE </IfModule>   RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^(www\.)?prolinesystems\.net RewriteRule ^(.*)$ https://prolinesystems.net/$1[R,L]   # This is the code that Starts X5   RewriteCond %{HTTP_HOST} ^www.prolinesystems.net$ RewriteCond %{SERVER_PORT} ^443 RewriteRule ^(.*)$ https://prolinesystems.net/$1[R=301] ErrorDocument 404 /error404.html   ## 301 Redirects ## Redirect 301 /the-rail-saver-tool.html https://prolinesystems.net/the-rail-saver.html ..... # WebSite X5 - End Code

Hi Giulio,

you can see directly the problem in the file you posted. Look at the lines I marked in bold. They belog together at the beginning, as you can see in my version above. You own entries have to go outside the #WebSite X5 markers! Everything what is added between these markers are deleted automatically, except the line with the error document link. Your .htaccess file should look like this:

# WebSite X5 - Start Code [do not edit]

ErrorDocument 404 /error404.html

# WebSite X5 - End Code

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

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST} ^(www\.)?prolinesystems\.net

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R,L]

RewriteCond %{HTTP_HOST} ^www.prolinesystems.net$

RewriteCond %{SERVER_PORT} ^443

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R=301]

## 301 Redirects ##

Redirect 301 /the-rail-saver-tool.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /contact-us-.html https://prolinesystems.net/contact-us.html

Redirect 301 /ksfhsjh https://prolinesystems.net/

Redirect 301 /landing-page.html https://prolinesystems.net/

Redirect 301 /human_video.html https://prolinesystems.net/

Redirect 301 /compuspot_180al_aluminum_dent_puller.html https://prolinesystems.net/compuspot-180al-aluminum-dent-puller.html

Redirect 301 /compuspot_850.html https://prolinesystems.net/compuspot-850.html

Redirect 301 /djs_car_parts_rack.html https://prolinesystems.net/djs-car-parts-rack.html

Ler mais
Publicado em de Martin P.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT
Martin P.
Giulio V. ...

già come detto da me prima... 

already as I said before...

Ler mais
Publicado em de Claudio D.
Martin P.
Martin P.
User

Try to upload the attached .htaccess file and update your website.

Ler mais
Publicado em de Martin P.
Giulio V.
Giulio V.
User
Autor

Gentlemen

I really appreciate your assistance. Here is what my .htaccess file shows. Does this look okay to you?

Is there anything that should be removed?

And is the Red Arrow the correct place we need to to put the code to stop losing our 301 redirects whenever we upload the site?

Thank you to all and have a greaat weekend.

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

surprisedsurprisedsurprised

No !!!!

Se metti in fondo la scritta di website , è normale che lui ti cancelli tutto !!!

il tuo codice va messo DOPO la freccia rossa !

No !!!!

If you put at the bottom the writing of website , it is normal that he will delete everything for you !!!

your code should be put AFTER the red arrow !

ti allego come va fatto...

ovviamente andrà rinominato in 

I'll attach how it should be done...

obviously it will have to be renamed to 

.htaccess

================================

# WebSite X5 - Start Code [do not edit]

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

# WebSite X5 - End Code

RewriteEngine On

RewriteCond %{SERVER_PORT} 80

RewriteCond %{HTTP_HOST} ^(www\.)?prolinesystems\.net

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R,L]

RewriteCond %{HTTP_HOST} ^www.prolinesystems.net$

RewriteCond %{SERVER_PORT} ^443

RewriteRule ^(.*)$ https://prolinesystems.net/$1 [R=301]

## 301 Redirects ##

Redirect 301 /the-rail-saver-tool.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /contact-us-.html https://prolinesystems.net/contact-us.html

Redirect 301 /ksfhsjh https://prolinesystems.net/

Redirect 301 /landing-page.html https://prolinesystems.net/

Redirect 301 /human_video.html https://prolinesystems.net/

ErrorDocument 404 https://prolinesystems.net/

Redirect 301 /compuspot_180al_aluminum_dent_puller.html https://prolinesystems.net/compuspot-180al-aluminum-dent-puller.html

Redirect 301 /compuspot_850.html https://prolinesystems.net/compuspot-850.html

Redirect 301 /djs_car_parts_rack.html https://prolinesystems.net/djs-car-parts-rack.html

Redirect 301 /electronic_measuring.html https://prolinesystems.net/electronic-measuring.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps.html

Redirect 301 /hydraulic_pump_and_jacks.html https://prolinesystems.net/hydraulic-pump-and-jacks.html

Redirect 301 /spectratek_bulbs_parts.html https://prolinesystems.net/spectratek-bulbs-parts.html

Redirect 301 /the_rail_saver.html https://prolinesystems.net/the-rail-saver.html

Redirect 301 /tru-line_training_videos.html https://prolinesystems.net/tru-line-training-videos.html

Redirect 301 /ultracut_40_plasma_cutter.html https://prolinesystems.net/ultracut-40-plasma-cutter.html

Redirect 301 /uni-power_pulling-post.html https://prolinesystems.net/uni-power-pulling-post.html

Redirect 301 /universal_truck_clamps_.html https://prolinesystems.net/universal-truck-clamps.html

Redirect 301 /used_equipment.html https://prolinesystems.net/used-equipment.html

Redirect 301 /welder_parts.html https://prolinesystems.net/welder-parts.html

Redirect 301 /aim-hybrid-battery-spot-welder.html https://prolinesystems.net/spot-welders.html

Redirect 301 /page-144.html https://prolinesystems.net/

Redirect 301 /uni-ram-gun-washers.html https://prolinesystems.net/

Redirect 301 /nitrogen-plastic-welder--polyvance-6080-cg-.html https://prolinesystems.net/nitrogen-plastic-welder-polyvance-8203-.html

Redirect 301 /ez-frame-clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /car_moving_dollies.html https://prolinesystems.net/car-moving-dollies-by-djs-fabrications.html

Redirect 301 /ford-approved-self-piercing-rivet-gun---cmo-ep-rv02.html https://prolinesystems.net/ford-approved-self-piercing-rivet-gun---cmo-rv-ep02.html

Redirect 301 /mig_welders.html https://prolinesystems.net/mig-welders.html

Redirect 301 /leasing__financing.html https://prolinesystems.net/financing.html

Redirect 301 /compuspot_advanced_150.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /blueboy_pipe_benders.html https://prolinesystems.net/blueboy-pipe-benders.html

Redirect 301 /used-equipment.html https://prolinesystems.net/

Redirect 301 /body_buddy_xl.html https://prolinesystems.net/frame-machines.html

Redirect 301 /uni-power-pulling-post.html https://prolinesystems.net/body-loc-pulling-equipment.html

Redirect 301 /portaspot-ps2002.html https://prolinesystems.net/compuspot-160-digital-dent-puller.html

Redirect 301 /spectratek-2400400-uv-lamp.html https://prolinesystems.net/spectratek-uv-led-curing-lamps.html

Redirect 301 /aluminum-pulse-mig-welder.html https://prolinesystems.net/mig-welders.html

Redirect 301 /plastic-welder-polyvance-6085-nitro-fuzer.html https://prolinesystems.net/plastic-welder-polyvance-8201-nitro-fuzer.html

Redirect 301 /stat-gun---auto-body-static-remover.html https://prolinesystems.net/stat-gun-auto-body-static-remover.html

Redirect 301 /ez_frame_clamps.html https://prolinesystems.net/ez-frame-clamps-.html

Redirect 301 /blog/?tag= https://prolinesystems.net/blog/

Redirect 301 /spectratherm_8000s.html https://prolinesystems.net/spectratherm-8000sd-.html

Ler mais
Publicado em de Claudio D.
Giulio V.
Giulio V.
User
Autor

Claudio

Please be patient with me, I have placed a red arrow at this position. So now is this the correct place to insert the code?

Blessings,

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

surprisedcryundecided

maybe I'm on a candid camera TV show

wait for me to smile then start shooting !!!

I have told you several times that you must put your code AFTER Website's...
and you ask me if you have to put it in the middle ?

you need to put your code AFTER Website's...
here AFTER this line

# WebSite X5 - End Code

=========

I have placed a red arrow at this position.

Ler mais
Publicado em de Claudio D.
Giulio V.
Giulio V.
User
Autor

Claudio

I hope I am not frustrating you, and the Candid Camera thing is quite funny LOL.
We are getting close to a happy ending.

It is getting much more clearer now thanks to your generous experience and example. I have one more question, in your example your red arrow points to # Website X5 - End Code which you have kindly instructed me to place the code after it.

On my example you can see I Do Not See # Website X5 - End Code. Is this a problem or should I just paste the code there?

I Promise to give you high Praise when this is all done. Thank you for hanging in there for me.

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT
Giulio V.
On my example you can see I Do Not See # Website X5 - End Code. Is this a problem or should I just paste the code there?

io lo vedo... e questo cos'è ? lo hai messo tu alcuni post fa , si trova proprio alla fine del tuo htaccess

and what is this ? you put it a few posts ago , it is right at the end of your htaccess

è dall'inizio che te lo sto dicendo...

I've been telling you since the beginning....

Sposta TUTTO il tuo codice dopo quella stringa

Move ALL of your code after that string

e se per sbaglio ora lo hai cancellato...

Si va bene che lo scrivi dove hai messo la freccia rossa..

ma verifica bene , sino in fondo che non ci sia ulteriormente... 

And if you accidentally deleted it now...

Yes it's fine that you write it where you put the red arrow ...

but verify well , all the way down that there is no further... 

Ler mais
Publicado em de Claudio D.
Giulio V.
Giulio V.
User
Autor

Hi Claudio

I will be meeting with my web professional and now I fully understand what you are telling us to do. Thank you.

Do I just copy and paste the code you sent me from this string, or do we need to copy it to notepad first, then copy it to the .htaccess file.

I will report back with our successful results.

Ler mais
Publicado em de Giulio V.
Giulio V.
Giulio V.
User
Autor

Thanks. Everything is now working. 

One last question, on the .htacess file, how do I redirect the www version of the site to the non-www version of the site. My SEO guy tells me that this is needed to improve my SEO. I'd love to know how to do this.

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT
Giulio V.
Grazie. Adesso funziona tutto. 

bene !

Giulio V.

Un'ultima domanda, sul file .htacess, come reindirizzare la versione www del sito alla versione non www del sito. Il mio ragazzo SEO mi dice che questo è necessario per migliorare il mio SEO. Mi piacerebbe sapere come farlo.

the commands are these, but you have to see them as a whole with the others...

RewriteEngineOn

RewriteCond%{HTTP_HOST} ^www.tuodominio.com [NC]

RewriteRule ^(.*)$ http://tuodominio.com/$1 [L,R=301]

WebsiteX5 has nothing to do with this...

Sorry but if he is the SEO expert he must know these things... undecided

Ler mais
Publicado em de Claudio D.
Giulio V.
Giulio V.
User
Autor

Hurray!!!

My website is now functioning properly, because of your expertise and patience with me.

I would like to post a special comment in praise of your support in finally putting this issue to rest. 

Where would I go to give you a well deserved High Praise comment for your support?

Best Regards, Giulio

Ler mais
Publicado em de Giulio V.
Claudio D.
Claudio D.
Moderator
Usuário do mês IT

I thank you...
no need for a post of appreciation...
just close this post with a tick on "correct"  to my reply that solved you.
good work

bye

Ler mais
Publicado em de Claudio D.