-1

I have a website that I have created on one of its folders. Now I want to delete the site with the command. My page is located here

saeed
  • 2,477
  • 2
  • 23
  • 40
Mpzed
  • 11
  • 3

2 Answers2

0

if I've understood your question (and please make it more clear this time and next times :) ) you can do it like this :

sudo rm .htaccess

Or

rm -rf Name-of-your-file

have a nice iranian day !

Anwar Benhamada
  • 301
  • 3
  • 12
  • RewriteCond %{HTTP_HOST} ^www\.matdesign\.ir RewriteRule ^/?$ "https\:\/\/matdesign\.ir\/" [R=301,L] ______ I've put the code above for you. All I do not know here is adding a directory to the code if it's possible to tell me where to place the charge. – Mpzed Sep 16 '17 at 05:19
  • I don't think you are getting there by .htacess, just delete the directory containing the "charge", not from .htaccess file. and there you have it. – Anwar Benhamada Sep 16 '17 at 05:47
  • I've already fixed the site problem with the same method. I will share the code for you. My tip of your response. – Mpzed Sep 16 '17 at 06:22
  • I'm glad that you solved this just post it as an answer :) – Anwar Benhamada Sep 16 '17 at 07:17
0
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://example.ir%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS}s ^on(s)|
RewriteCond http%1://%{HTTP_HOST}%{REQUEST_URI} ^(https?://)www\.(.+) [NC]
RewriteRule ^ %1%2 [L,R,QSA]

first code : delete http and set to https and next code : delete https://www and set to https://

Mpzed
  • 11
  • 3