Support

Site Restoration

#12521 Every home page link from restored site leads to 404 page

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

Latest post by nicholas on Friday, 01 June 2012 15:02 CDT

PeterAnthony
404 pages on every link from home page on my restored site.
This issue occurred before and I could have sworn that you helped me solve it. However when I look at my old tickets I cannot find it.

The home page of the restored site is at: http://morevida.com/goodtalktnt/
You'll notice that every link you click on leads to a 404 page. I feel like I'm losing my mind as I'm sure that you solved this already for me once and I can find no trace of it in my email or on your support site.

Hostgator seems to meet all of your requirements for the .htaccess and permissions etc.

Would really appreciate your help in learning how to make this routine.

Versions:
Joomla 2.5
MySQL 5.5.21-55
php 5.3
Host: Hostgator
Akeeba backup professional 3.5

nicholas
Akeeba Staff
Manager
I believe you have to simply follow the instructions on this page: https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html

Also, please, file only ONE ticket per issue. Seeing three tickets for the same doesn't help me help you any faster ;)

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

PeterAnthony
Hi, I'm not the most technical person in the world as evidenced by my inability to even find the .htaccess file when I downloaded it. I am only able to see what's in this file by opening it on the server, which I'm told is not good practice. Here's what's in there: http://screencast.com/t/n9ch2tBz

And whatever is in there was put by someone else. Your instructions on that page regarding this page is not clear to me and I don't feel comfortable making any changes to this file.

I did make the change to the configuration.php file as instructed and it did some good as there were some colour changes that were properly reflected after I made the change to the sub-directory where this configuration.php file is.

However I still get 404 pages.

I wonder if any of the problems may be due to the name of the mysql database that I'm using which has a slightly different name "morevida_goodtalktt" I had created that mysql database for another domain which I have since decided to discontinue using. I created this other development environment but used the same mysql database. Could that be the problem. I've tried attaching my configuration.php file, but when I attach it and hit "send your Reply" I get this page http://screencast.com/t/SUpWDY1WpgI8

nicholas
Akeeba Staff
Manager
OK, there are two solutions:

1. Go to your site's Global Configuration and set "Use URL rewriting" to No

2. Tell the guy who create your .htaccess that he should include the stuff from Joomla!'s htaccess.txt into .htaccess, otherwise SEF URLs won't work. Hopefully he'll understand what that means.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

PeterAnthony
Thanks Nicholas.

In the future I will open multiple tickets, but it just seemed appropriate to include my questions in one email as it's easier for me and the issues are related.

I believe I understand now what I have to do in the future. As part of the restoration process I have to put in the development site url. It says "leave blank if unsure" and I did leave it blank.

Then once the site is restored I have to login to the backend and change the global configuration setting to "No" for "Use URL rewriting."

Whew! At least now I know how to reproduce this in the future.

Couple follow up questions:
1. Do you recommend any easy reference material or documentation on what "Use URL rewriting" means?
2. Should I still go ahead and make the changes to the .htaccess file you explained above? Could I do it myself by just copying the contents of the entire htaccess.txt file into the .htaccess file? (I have no developer really and I may created that same htaccess file but I can't remember why?)

Thanks for your help.

nicholas
Akeeba Staff
Manager
Hi Peter,

Well, sometimes what seems related may actually not be. Also, since this is a public ticket, we are confusing people who will be seeking for a likely answer to a similar question in the future. Think about what would happen if you had the "all links lead to 404" issue, stumbled upon this thread and saw a never-ending thread going on forever :)

Regarding your questions:

1. As written in Joomla!'s documentation, available from the Help button in the GLobal Configuration page:
When set to Yes, Joomla! will use the mod_rewrite settings of Apache when creating search engine friendly URLs. Please note: it is advised that you do not modify any .htaccess file without an understanding of how it works. You must use the .htaccess file provided with Joomla! in order to use this setting. To use this file, rename the htaccess.txt file (found in the root directory) to .htaccess. By default, this setting is set to No.


2. As you read in the official Joomla! documentation excerpt above, if you want to use URL Rewriting you must include the htaccess.txt code. However, if you do not understand what .htaccess does please consider turning off URL Rewriting and turning on SEF URLs. Or ask your developer to take a look. It's one of those things which if you don't understand and modify can bring down a site. Think of it as your car's ABS system; you really don't want to screw around with it unless you know what you're doing.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!