Joomla 2.5 404 on inner pages - mod-rewrite

I just downloaded a remote copy of Joomla 2.5 site, and when working in localhost any of the internal links work.
Home page and administrator work ok but internal pages return 404 not found
Local site runs PHP 5.3.21 on Apache 2.2 under Windows (server is linux), SEF and mod_rewrite is enabled and htaccess works on other local sites so I guess it should be working.
My hosts file has an entry for this domain and set up a virtual host so URLs are exactly the same in localhost and in the server. This is apache access log entry:
127.0.0.1 - - [23/Apr/2014:15:39:34 +0200] "GET /opinion/europe-today HTTP/1.1" 404 1480
Any ideas?

It sounds like the .htaccess file was copied when you downloaded the site. This would be normal given that invisible files are often ignored in copies.
I would check that the .htaccess in your sites root directory is the same as the live site.
The best way to make a copy of a Joomla website, that includes the .htaccess file and all the database and configuration details is to use Akeeba Backup in conjunction with the Kickstart package. The free Core versions of Akeeba Backup and Kickstart will do all that you need if it's a simple move.

Related

I can't access to my website hosted on OVH (The requested URL / was not found on this server)

I have a website hosted on ovh.
I'm uploaded the source files in www directory and now when i try to access to my home page website i have this error : The requested URL / was not found on this server. In the www directory i have an index.html file.
Can you help me please.
Make sure that your hostname is pointing to the right folder.
For OVH, you usually need to check the "Multisite" or the "Subdomain" settings to configure on which folder the user lands, depending on the (sub)domain.
For OVH webhosting, each domains or subdomains is handle by a "multisite". You can setup a different folder for each multisite.
Did you check your multisite is setup for your "www" folder?

URL rewrites do not work after moving Magento installation to new server

After duplicating our web store onto a new server, copying the database over and changing the base url/safe base url in the db, all we get from the copied installation is the front page. That is, no custom url redirects work (for products, the admin panel, etc.), they all result in a 404 (and not the magento 404, the server default). Do you have any ideas what I could check out? Could there be an issue with one of the libraries included in magento?
I tried reindexing with /shell/indexer.php - which executed successfully but didn't fix the redirects.
Any ideas? Note I cannot access the admin panel via /admin because of this issue.
Edit: solution was .htaccess file missing in root directory
I added the sample htaccess file from the magento installation (I uploaded a copy in case someone finds it useful: http://sdrv.ms/13mw8Ok), and mod_rewrite was activated the next time I visited the site.
Make sure your vhosts file is setup correctly to allow mod_rewrite
Make sure your .htaccess file is setup correctly
How to enable mod_rewrite for Apache 2.2
You can access your admin through /index.php/admin in the meanwhile.

Moved Joomla 1.7 Site to New Server. Admin works fine. No pages display

I've just moved a Joomla 1.7 site to a new server.
Administration back-end works fine. Configuration.php seems fine. Get "The requested document was not found on this server." for every page other than Home.
Must be talking to the database OK or I'd get an error. Could this be a problem with the PHP?
Thanks,
Andy
Did you clear joomla cache ?
Disable page and/or module caching.
Disable any plugin that optimizes "loading speed".
Try removing SEF URLs (Joomla! and any 3rd party extension).
If you are using a custom .htacess, then use an unmodified joomla one.
Disable some system plugins.
Disable modules in the homepage.
Have you tried using another template (site) ?
You have Seach Engine Friendly URLs enabled in /administrator/ area's global configuration settings. You have probably enabled the option to use the mod_rewrite function which removes the /index.php/ portion of the urls.
It is a requirement of this mode that you have the .htaccess file in place in the root of your site. You probably had this correctly configured on your development server but perhaps forgot to move the file across when you went live. Some FTP programs hide dot files (files starting with a leading dot in the filename) so depending upon how you transferred the files (I'm guessing manually with FTP rather than Akeeba backup or similar) the file may have been missed. Look through your FTP client's options/preferences for an option to show/hide hidden files.
Failing this - the file could be correctly in place - but if you were developing in a sub-folder on your development server you would have set the RewriteBase line to your /sub-folder/
RewriteBase /sub-folder/
Now you've moved to the live server this line could be incorrect. If this is the case, edit the file to Read
RewriteBase /
Chances are it is one or other of these issues - missing .htaccess file or incorrect RewriteBase. A third and nowadays somewhat more unlikely option is that your server doesn't have mod_rewrite enabled - but I think that would result in server 500 errors.
Check whether you are using any modules that is calling database and you have not changed DB details in that module after migration. If admin panel is working fine then I think problem with some modules that are used in front-end. You can do debugging by disabling few suspected modules and check whether your site works fine or not. Else provide some more information about your site so that I can check further.

index.php not found in url of cloned Magento Site on Development server?

I have cloned a live Magento 1.5.0.0 site to my development server (windows wamp)
the development server does not have an .htaccess file in the roor directory but i have copied one into my root directory from another magento install?
Every thing seems to be configure ok the database is connected ok, I have set up alias which loads the index.php page ok but the url's do not work , so if i click on the contact us page the server error is:
The requested URL /vhosts/petextra/magento/index.php was not found on this server.
The adress bar url for the same is: http://127.0.0.1/petextra/contact-us/.
If I manualy type in the index.php in the address bar
http://127.0.0.1/petextra/index.php/contact-us/`
then the page loads ok.
Some how the url is not including the index.php?
Has anybody got any ideas why this is happening?
ensure that:
mod_rewrite is enabled on your dev site
.htaccess is in place
.htaccess file > RewriteEngine off
or turn off url rewriting from magento admin configuration>web> Search Engines Optimization > Use Web Server Rewrites > No
The same thing happened to me, The problem was that i enabled the search engines Optimization but later switched to NO. is working fine after that

Moved Joomla with Akeeba and Kickstart - Pages are returning 404's

I took an akeeba backup and moved it to a new server - the site as it exists has an 'enter page' that's plain html and then joomla is installed to a folder called 'site' so its mydomain.com/site is the Joomla root. The new server does not have a domain pointed to it its just an ip with a username like so the public html is http://xxx.xxx.xx.xx/~user/
so I put my 700mb backup into the http://xxx.xxx.xx.xx/~user/site folder (without ssh you can imagine how long this took) put the kickstart files in there set up the db on the new server ran the kickstart.php with both with the default settings (a blank site url) and trying to set the site url (http://xxx.xxx.xx.xx/~user/site) both ways the akeeba/kickstart backup went off without a hitch - I go to the site's default and it looks fine I'm actually amazed how smoothly it went but if I click the about page or any other page I get a 404.
If I run the same backup on localhost the menus don't load at all so I don't know what thats all about. I have very limited Joomla experience am mostly a wordpress guy - any ideas why the install and site is running fine but I'm getting these 404's?
Most likely the problem is with the SEF URLs. You need to change your htaccess file. Look for:
RewriteBase /site
Change it to:
RewriteBase /~user/site

Resources