Issue with a file!

Hi!
Can I restart the my server, or the .htaccess file ? The my .htaccess file not accept rule changes.
After deleting some data from the .htaccess, it still work same as was before, maybe it still caches some data.
How can I restart, so I can set the .htaccess rules as a new, like I setting rules the first time!.

Its more likely that your browser is cacheing something.

I reccomend pressing crtl f5 to do a hard refresh a few times, or using an incognito browsing window. That’ll make sure nothing is cached…

5 Likes

I always use Incognito, so this issue is not from the my side, it’s from a server side, and also I tried with the my phone Internet (It not a using same Internet, with the home wifi).

Server does not cache files and .htaccess is updated immediately after the file is saved. Make sure your .htaccess rules are correct and file location is accurate.

6 Likes

Unusual.

Just humor me a minute, and download the version of the htaccess thats on the server, and check that its updated correctly. I know I’ve uploaded files before, and somehow managed to upload an old copy

3 Likes

Well!, can I delete the my existing .htaccess, and recreate a new one. Can work as well in that case ?

That should work.

The my .htaccess file contains this lines:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:CF-Visitor} !{“scheme”:“https”}
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^info$ info.html [L]

After deleting this line:
RewriteRule ^info$ info.html [L]
It not accepted change.
Still the info.html redirects to info

Thanks, I will try!

That is unusual. What is your site’s URL?

2 Likes

@Khachik What are you using to edit the .htaccess file?

Here, direct! The Built-in editor

Sometimes, the Online File Manager bugs out and doesn’t save or edit files.

It is recommended to use FileZilla and a text editor for your files.

Thanks, I will try! :wink:

1 Like

Now, all is ok!
Thanks so much from all!
The issue is solved!

I’m glad your issue was resolved! Please mark the solution for others to see!

3 Likes

There are no answers, which solved the my issue!

In that case, do you think you could please explain how you ended up solving your issue? That way future people with the same problem can be told how to fix it.

6 Likes

Ok! :slightly_smiling_face:
Just a problem was on my side!
See above, content of my .htaccess file, there I have a file info.html.
I have renamed the file “info” to “intro”, without any change in a code.
The problem was solved through changing the code into the file.
There was a script respond to the “info”, therefore the intro.html redirects to “info”.
I have changed the “info” to “intro”.
So, all is solved!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.