linkedintwitterfacebookbranchout

sublogo
  • Our Services
  • Our Work
  • Who
  • Contact

Recent Blogs

  • Upgrade Joomla

  • How to design a Joomla website

  • What is Joomla?

  • Joomla Page Titles Module

  • Joomla FFmpeg Hosting

  • Working with Joomla

  • Social Networks and SEO

  • Blogging with Joomla

  • Joomla 1.7 For Web Sites

  • Custom Joomla Template Styling

  • Bespoke Custom Joomla Templates

  • Search Preview? You need it!

  • Introduction Articles in Joomla

  • Advertising Rules on Websites

  • Sef404 Virtuemart Pagination

  • Why Upgrade to IE9?

  • Expanding Joomla Content

  • Google's Goal

  • Meta Tags Help

  • E-Commerce Made Easy!

  • Joomla Installation

  • Joomla SEO Check

  • Improve your Joomla web site

  • Joomla htaccess re-write

  • Joomla Template Parameters

  • Email Safety

  • Create a hidden menu

  • Joomla1.6

Joomla htaccess re-write

Details
Created on Monday, 01 August 2011 11:43   |  
Written by The bloggers

Ok so many people that use Joomla constantly ask the same questions. One of these common questions is " how do I get the index.php file at the end of my domain name to disappear"? This would mean that those people that want this, have a component installed that will automatically rewrite their urls from index.php?com_content=id&.......etc etc to something like /mypage.html.

Great! so what about duplicate content? by this i mean having mydomain.com as your home page and mydomain.com/index.php also as your home page. This is just how it is, go ahead test your site if you don't believe me.

So what we want to do is get rid of mydomain.com/index.php ( NOTE: this will only work is all your urls have been converted by a component like 404sef or Artio JomSef}

All you need to do to get this working is to add the following to your htaccess files at the very top, many people just add this at the bottom and so it does not work.

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mydomain.com/ [R=301,L]

Once you have added the code (make sure you replace mydomain.com with your own) save the .htaccess file and now give it a try. Go to mydomain.com/index.php and you will now go straight mydomain.com no more duplicate content and as far as the search engines are concerned mydomain.com is the only home page you have. Happy days!

address

27 Levens Grove
Blackpool
Fy15PP
Lancashire
Tel: 01253 317504

Chat With a Joomla Expert

Features

  • Web Site Design and Development
  • Joomla Developers
  • Joomla Training Courses
  • E-commerce Sites
  • Web Site Promotion and Marketing

Clients

clients

  • Home
  • Blog
  • Terms and Conditions
  • Privacy Policy
  • Testimonials

 Copyright © 2006 - 2012 All Rights Reserved - Web Design Studio Limited -Tel: 01253 317504 - Mobile : 07896978967