.htaccess and error 404
-
Hi,
I permit to contact the community again because you have good and quick answer !
Yesterday, I lost the file .htaccess on my server. Right now, only the home page is working and the other pages give me this message :
Not Found
The requested URL /freshadmin/user/login/ was not found on this server
Could you help me please?
Thanks
-
Thanks for all your answers, I finally asked a backup to my hosting company and all is working good now !
-
This is because the .htaccess file you lost contained rewrite rules for Apache.
Solution:
Create another site using "Fresh Store Builder" and copy the .htaccess it generates to your existing site.
Failing that contact their support and ask them for the .htaccess file.
Moving forward, always take a backup of your websites to prevent this happening again.
Keith
-
Yeah, I will try it
Thanks for your time
-
Another option could be to see if your hosting company have a backup?
-
Thanks for your answer, but right now I dont have access to the support.
That's why, i'm looking for an other solution?
-
Unfortunately the support is locked down to account holders only.
Login here: https://account.freshstorebuilder.com/support/
and ask if they would be so kind as to send you a copy of the default htaccess file for the version you are using and then upload it to the root.
-
Hi,
Thanks for your quick answer, as I said, I used www.freshstorebuilder.com to do the website
Thanks again
-
Hi,
What content management system are you using? You will be able to pull a default one from a fresh download of the same CMS and then just upload the .htaccess to the html root.
PM me if you know your CMS and i can probably manage to send you the file over.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Cookies disabled pointing to a 404 page
Hi mozzers, I am running an audit and disabled cookies on our homepage for testing purposes, this pointed to a 404 http response? I tried on other pages and they were loading correctly. I assume this is not normal? Why this is happening? and could this harm the site's SEO? Thanks!
Technical SEO | | Taysir0 -
Missing xml tag error
Our xml sitemap is divided up in to many smaller xml sitemaps so we have fewer products per sitemap, in order to easily identify errors. A couple of weeks ago, we changed our xml sitemap by reordering some of the products. However, this has left some old xml sitemaps without any data, and they are no longer appearing in our xml sitemap. But, Google is still identifying these sitemaps since they once existed, and they are giving errors since they can't locate them. Should we 404 those xml sitemaps, or is there a better way to handle this?
Technical SEO | | ang0 -
Trying to mark as fixed multiple errors on webmaster tools
We have 44,249 errors and I have set up for most of the URLs a 301 redirect. I know exactly which links are correctly redirected my problem is I don't want to mark as fixed each one individually. Is there a way to upload a URL list to webmaster tools and it automatically marks as fixed based on the list.
Technical SEO | | easyoffices0 -
404 Pages increasing day by day. Why??
Please look at my website, 404 Pages suddenly increasing in number. I have looked at the google webmaster tool and found it showing all my URLs in wrong format. This page is also not working I attached webmaster screenshot as well
Technical SEO | | Michael.Leonard0 -
Has anyone else gotten strange WMT errors recently?
Yesterday, one of my sites got this message from WMT: "Over the last 24 hours, Googlebot encountered 1 errors while attempting to retrieve DNS information for your site. The overall error rate for DNS queries for your site is 100.0%." I did a fetch as Googlebot and everything seems fine. Also, the site is not seeing a decrease in traffic. This morning, a client for which I am doing some unnatural links work emailed me about a site of his that got this message: "Over the last 24 hours, Googlebot encountered 1130 errors while attempting to access your robots.txt. To ensure that we didn't crawl any pages listed in that file, we postponed our crawl. Your site's overall robots.txt error rate is 100.0%." His robots.txt looks fine to me. Is anyone else getting messages like this? Could it be a WMT bug?
Technical SEO | | MarieHaynes1 -
Index page 404 error
Crawl Results show there is 404 error page which is index.htmk **it is under my root, ** http://mydomain.com/index.htmk I have checked my index page on the server and my index page is index.HTML instead of index.HTMK. Please help me to fix it
Technical SEO | | semer0 -
Htaccess query
I'm currently working on a live version of a clients website which has duplication issues. With .htaccess, I need to rewrite URL's of the following format: vacancy.php?id=802 to vacancy/?id=802 I tried adding the following line but it returned a 500, and don't want to keep taking the site out. RewriteRule ^vacancy/?id=([0-9]+)$ vacancy.php?id=$1 [R=301, L]
Technical SEO | | AndrewAkesson0 -
Duplicate content error - same URL
Hi, One of my sites is reporting a duplicate content and page title error. But it is the same page? And the home page at that. The only difference in the error report is a trailing slash. www.{mysite}.co.uk www.{mysite}.co.uk/ Is this an easy htaccess fix? Many thanks TT
Technical SEO | | TheTub1