i am looking for .htaccess in Filezilla. But evan after clicking Force showing hidden file in the Server menu. But .htaccess file is still not visible.Any idea?
My website is in asp.net if this make any difference.
You probably don't have a .haccess file in you server.
So, you have to create a htaccess.txt, upload it in your filezilla and rename it .htaccess
Hope this helps you
Related
I have a website created with HTML, CSS, and JavaScript. I am trying to accomplish a 301 redirect (from http to a https connection) using my .htaccess file through filezilla.
When trying to View/Edit the .htaccess file, I have a "transfer error". Which doesn't let me view/download/edit the file.
when I tried finding solutions I saw people used their cPanel to edit the file instead. I have my hosting with Blacknight, and in my file manager there is no .htaccess file.
I thought there was something wrong in the way i had made the file visible in FileZilla but that wasn't the case either.
I have also tried changing the file permissions to 755 but they're reverted back to their own settings of 440 whenever I open them again.
Note: Where I can see my .htaccess file in Filezilla, is on the right hand side of the Filezilla program where remote site is, and the second box down where there are other files such as error_docs, siteapps etc.
I need the .htaccess to open so I can paste in the code below which would then do the redirect from http to https.
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NC]
The .htacces file should open when i click on it, or when I right click and then click View/Edit.
All it does now is say "transfer failed" and "critical file transfer error".
Thanks for any help :]
The solution to this was to create a new .htaccess in Blacknight Control Panel File Manager. I had already tried to show hidden files but the reason it wasn't showing was because for some reason it didn't exist in the file manager, when it did in my Filezilla.
What I had to do was:
-Open the file manager
-right click and select create new text file
-right click and select edit
-paste in the redirect code
-save file
-rename text file to .htaccess and remove the .txt extension
NOTE: Only remove the .txt extension after you have edited the file, as doing beforehand will not allow you to edit the file.
It looks like the FTP username which you are using does not have the privilege to edit the files.
You can use the cPanel --> File Manager to edit the files. You have mentioned that you are not able to see the .htaccess file when you do this. This could be because .htaccess is a hidden file and will not show on File Manager by default.
To see hidden files select File Manager. Click the top-right Settings button. Then on the Preferences window, check the option Show Hidden Files (dotfiles). Confirm the action by clicking the Save button.
After this you should be able to view and edit the .htaccess files. Please note that generally .htaccess file is in the public_html directory.
I made a TYPO3 Webpage and use the RealURL which is saved in the .htaccess.
Now I want to make this Homepage working on a IIS Webserver and have the problem that the .htaccess does not work properly, because IIS uses the web.config file.
Can anybody tell me what i have to do, so that I can use all the code of the .htaccess file?
Greetings
Simple google search:
.htaccess or .htpasswd equivalent on IIS?
https://superuser.com/questions/800261/using-htaccess-with-iis
https://www.iis.net/learn/application-frameworks/install-and-configure-php-applications-on-iis/translate-htaccess-content-to-iis-webconfig
I am a complete beginner in Codeigniter. I am facing 2 problems
I am unable to upload htaccess file
If I need to upload where should I upload
Upload it to the root folder.
Also you might need to remove the index.php from the url, if so you have to follow this link.
iF you are begginer, Follow these steps as show in link... https://www.codeigniter.com/userguide3/general/urls.html
Make sure, First mod_rewrite on your serevr. And .htaccess file uploded in root of project. Enjoy codeigniter .
I've just had a problem from last few hours. For a client I needed to redirect some urls to other specific urls through his .htaccess files. I just went through his ftp from Filezilla as he has cloud hosting, there wasn't any cpanel. I just had a .htaccess file which contains only 301 redirects, I uploaded it into /content folder.. Then I opened the site and saw it dead, before it it was working fine. Now whenever I open the site I receive this
Upgrade in progress.
Copy changes to updated version(complete 4:45)
Copy settings to updated version(complete 5:00)
Back up whole site.(complete 6:44)
Back up the database(complete 6:45)
Upgrade database(complete 6:49)
Upload new code
If I try to go to /index.php I receive this.
phpPennyAuction
phpPennyAuction is not yet completely installed.
Please check the following:
That both of your .htaccess files are present and correct.
That your server has mod_rewrite installed
That your server is configured with AllowOverride set to All
If you need further assistance, please contact phpPennyAuction Support.
All contents © 2010 Scriptmatix Ltd. phpPennyAuction
Before just putting .htaccess file everything was fine. I just removed my .htaccess file, renamed the cache folder still the same problem. I might pay a little cup of coffee to anyone who helps fixing in this.
P.S Don't advise to ask on their forum, just contact their support the guy unofficially said "I'm not sure what's the problem I will charge 300 USD".
It is a big trouble for me, help appreciated.
Thanks
Kazim
I think that when you uploaded the htaccess file you overwrote the htaccess file used by phpPennyAuction.
Try to find the original htaccess file(s) and put them back. They should be in the original "installer" or download.
After that you could put the content of your 301 file a the top of the htaccess.
You need the .htaccess file that is provided in the folder:
install-data/packages/01/phppa.zip/.htaccess
I have an .htaccess file in the folder called folder and another file, called form.html in the same folder
When I try to reach the folder (by entering http://blablabla/folder/), it does block the access and I am getting an error 403 but when I enter the exact URL of the file http://blablabla/folder/form.html anf hit enter, I can access the file as easily as if I haven't put any .htaccess file.
Am I doing something wrong?
Am I missing something, should I use something like or
Sorry if the question is really basic...
.htaccess is a container for directives for your apache web server that apply to that directory and below only. What directives have you got in your .htaccess file?
The behaviour you outline above is how apache should behave with no .htaccess folder.
What is it that you are wanting to happen?