Eliminating index.php from URL in Joomla 2.5 - joomla

I am using Joomla 2.5. The problem is, every link has 'index.php', like:
www.mysite.com/index.php/contact
www.mysite.com/index.php/about-us
How do i remove the '.../index.php/...' from my URLs?
My SEO settings under Global Configuration are:
==================================
Search Engine Friendly URLs Yes
Use Apache mod_rewrite Yes
Adds Suffix to URL No
Unicode Aliases No
Include Site Name in Page Titles No
==================================
I have changed htaccess.txt to .htaccess. I have tried everything, but still can't remove 'index.php' from the URLs. Please help me. My apologies if this exists elsewhere.

Go into your Joomla administration panel.
1. Select Site > Global Configuration
2. Under SEO Settings set Use URL Rewriting to Yes
3. Click Save
The next step is to rename the htaccess.txt file that came with the installation to .htaccess
thats it. Hope this helps .

Did you change the setting on the administrator backend or the actual configuration file? Sometimes if you directly modify the configuration.php this wont work. If you did it from backend panel then check your configuration.php to make sure the changes are reflecting.
Also check with your hosting to have mod_rewrite available on the Apache server.
Very unlikely but it could be a small mistake on renaming process of the htaccess.txt , double check the renamed file.

Related

Magento Use Web Server Rewrites in Multi Domain Setup

I have to two stores each having different domain. They are hosted on dedicated server with SuExec disabled. I have copied the .htaccess and index.php and everything works fine.
The problem I am having is with my 2nd store Web Server Rewrites. As soon I enabled this for the 2nd store which is using symbolic link to the root directory, it starts giving page not found error.
domain2.com/index.php/abc.html ----- Works Fine with Use Web Server Rewrites Turned Off
domain2.com/abc.html ----- Does not work with Use Web Server Rewrites Turned ON
The base store works without any problem.
Any help is much appreciated.
Farrukh Khan
-> Flush The Magento Cache
Goto System->Cache Management
Refresh the catalog rewrites
Goto All Cache and change drop down to Refresh.
Click save
On most server, this should take out the index.php in your URL’s.
If you are getting a 404 error, continue reading.
-> Fixed Mode_Rewrite Errors
Please check you webserver configuration.
Do you use Apache? Maybe there is something like "AllowOverride none" in your configuration which disables .htaccess-files (the .htaccess-file in your magento-root-directory defines the rewrite-rules).
The most common cause for this is that you have an incorrect .htaccess file in your ftp.
Goto the magentocommerce.com site and download the magento files again.
Extract the files, and ONLY upload the .htaccess file to your Magento root directory.
This should fix any problems related to enabling the use of web server rewrites in Magento.
I was facing the same problem above, but now i solved already. The main reason for that problem is .htaccess file. By replacing .htaccess file with magento default .htaccess file solve all the problem. Web Server Rewrites Turned on or off, you can do as you like.
After saving the configuration, don't forget to clear cache.

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.

Joomla SEO doesn't work after migration

I have a Joomla 1.5 website and I enabled SEO on it. I moved it to different location with different DNS and now SEO doesn't work. How can I fix it?
Three checkboxes ("Search Engine Friendly URLs", "Use Apache mod_rewrite" and "Add suffix to URLs") on global configuration page regarding SEO are checked.
Is the new server definitely an apache web server?
Is mod_rewrite enabled on the server?
If the answer to either of the above is no, then you have problems. For the first you'll need to change servers. For the second you'll need to get the server administrators to enable (and possibly install) mod_rewrite.
Is your website in a sub-folder? For example /joomla/ for example.
If so you need to edit the RewriteBase line within the .htaccess file.
Change the line from
RewriteBase /
to
RewriteBase /joomla/
Rename your htaccess to .htaccess.
There might be more problems, but I think you should start checking this:
1) You have the right .htaccess file in your joomla root and it is readable by your Apache user.
2) Go to the administrator > Site > Global Configuration and check you have "Search Engine Friendly URL's" and "Use Apache mod_rewrite" to "Yes".
3) Make sure that the Apache you are using has all the modules needed.

joomla pretty link

how set pretty links in joomla ? (similar to wordpress pretty links)
Go to Joomla root folder and rename htaccess.txt to .htaccess, then go to the administration panel->site->Global Configuration
Set
Search Engine Friendly URLs=> yes
Use Apache mod_rewrite => yes
If you have any troubles with the new links check the .htaccess file and set the RewriteBase.
You need to make sure that mod_rewrite is enabled, then turn on the "Search Engine Friendly URLs" option in Joomla's Global Configuration settings.
Be aware though that this solution will not provide you with the tracking or analytics the other plugin will.
You also will not be able to put external links in (eg. affiliates) and make them look like you, ex: yourdomain.com/prettyaffiliatelink

Magento installation Problem in plesk

I have installed magento from Plesk,The home is well,with layout buy when I click any link it show "Not Found" message.
I can not figure out the problem
Thanks in advance.
It looks like you have a problem with Apache mod_rewrite.
Anyway, you can check is it true. Let's just say that you where going to open http://www.example.com/electronics and got 404. Ok, no panic. Try to edit URL to be like this: http://www.example.com/index.php/electronics
If it works, than definitely you have a troubles with one of the following:
Apache mod_rewrite is not enabled. If you can open a page with phpinfo(), you may try to search "mod_rewrite" on that page. No results found -- no mod_rewrite... Call your hosting support.
You need to set RewriteBase directive in your .htaccess file (it may be hidden for web based filemanager). By default the line with RewriteBase is commented, and you can uncomment it and leave it's default value "/" if your Magento is uploaded to document root. If your Magento is in some sub-directory under document root, you need to set RewriteBase value lie this "/my_folder_with_magento".

Resources