Support

Akeeba Backup for Joomla!

#9159 404 URL not found

Posted in ‘Akeeba Backup for Joomla! 4 & 5’
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

Joomla! version
n/a
PHP version
n/a
Akeeba Backup version
n/a

Latest post by nicholas on Tuesday, 15 November 2011 13:06 CST

user50689
==================================
posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? All of them
Joomla! version: 1.5.23
PHP version: 5.3.3
MySQL version: mysql Ver 14.12 Distrib 5.0.77
Host: CentOS release 5.7 (Final)
Akeeba Backup version: Akeeba Backup 3.2.b3
==================================
Description of my issue:

Ive successfully restored my site. After a number of attempts trying to restore it to toher directories I am not trying to restore it to just the root of the webserver.
The homepage and administrator page is fine but when I click on any links I get a 404 url not found error (??).
So fair I have tried:
1) editing the .htaccess to include "/Rewrite Base"
2) edit configuration so that it includes $live_site variable.
3) checked the html between my production and my restored staging site.
4) cleared all cache and SEF cache

Any help would be greatly welcomed....

nicholas
Akeeba Staff
Manager
Hello Felix,

Restoring to a subdirectory of another Joomla! site is not recommended. There's nothing wrong with Akeeba Backup, it can do it, but if you're using a .htaccess then you're putting unnecessary obstacles in your path. Let me explain this.

Apache –your web server– follows a cascading rule for .htaccess files. It will first look for a .htaccess file on the master web root, then for a .htaccess files on each and every directory up to the one which is being accessed. In practical terms, this means that your main site's .htaccess file is loaded first, then the .htaccess in your subdirectory is loaded second. The combination of these two files is what will be effective on the new site inside the subdirectory. Obviously, this means that in the site in the subdirectory you might get a complete and utter mess.

There is no generic workaround in this case. It all depends on what redirections/rewrites you are performing on the main site's .htaccess file. Your best bet is using subdomains instead of subdirectories, since subdomains can be set up to have their root directory outside of your main Joomla! site, therefore the .htaccess cascading doesn't cause them to load a .htaccess file you do not want.

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!

user50689
Ok thanks.
I appreciate your comments. Out of interest I tried restoring my Joomla site to the root of my webserver and I still recieved the same error/issue.

Whatever the method I just need to find a way to restore my site even if it is to the root of the webserver. Ideally in a perfect world I would have subfolders/directories for this site.

Can you please help me with this ?

user50689
Ok, so I configured apache with a virtual directory and I can access my sites home page.
But still not the links.

Any Ideas ?

nicholas
Akeeba Staff
Manager
Hello Felix,

I am wondering, are you by any chance using a temporary URL, e.g. http://www.example.com/~username instead of a proper domain name to access your site? In this case, you won't be able to get SEF URLs working on that configuration. It's an Apache limitation and, trust me, I've tried very hard and I have even asked professional hosting engineers (Red Hat Certified Engineers nonetheless!) to no avail.

In any other case, it's most likely a case of configuring .htaccess (hint: the RewriteBase is probably what you need) and/or the $live_site parameter in your configuration.php. All of that is detailed in our troubleshooter guide over here: https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html

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!

user50689
I ended up configuring the virtual hosts and tweaking the SEF and it started working. Though my SEF is still displaying "index" within the URL but I imagine this is more of a SEF issue then a the restore.

Do you know any reason why with modrewrite and .htaccess configured with rewrite / it would not work and show me 404`s ?

nicholas
Akeeba Staff
Manager
Most likely you typed in something wrong. It should be RewriteBase / and NOT Rewrite /. In the latter case, you are causing 404 errors all over the place. Other than that, unless when you are using temporary (http://www.example.com/~user) URLs or have your site in a subdirectory, RewriteBase / will always work. If you are using a temporary URL, good luck with that, you can't have SEF URLs. If you are using a subdirectory, you need to supply the subdirectory name in the directive, e.g. RewriteBase /joomla for a site accessible with a URL like http://www.example.com/joomla.

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!