Perdona , he contestado antes de leer tu mensaje.
Tampoco hay que ponerse asi, y lo he puesto en la seccion de PHP porque no sabia donde ponerlo. Que algun moderador me lo mueva si es necesario y disculpen las molestias.
Antes de estos redirects lo que tengo es lo siguiente.
Options +FollowSymLinks
RewriteEngine on
Options All -Indexes
#RewriteRule ^([^/]+)$ $1/ [R,L]
#redireccionar todo a .com
#redirect 301 /
http://www.quality-courses.com
#Redireccionamiento a de todo al dominio.com
#redirectMatch 301 ^(.*)$ http://www.quality-courses.com$1
#### protect against DOS attacks by limiting file upload size ######
# LimitRequestBody 10240000
#### prevent folder listing #####
IndexIgnore *
#### Change domain.com to
www.domain.com #####
RewriteCond %{HTTP_HOST} !^www
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [L,R=301]
#### Remove Trailing Slash ####
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(.+)/$
#RewriteRule ^(.+)/$ /$1 [R=301,L]
#### 404 page #####
# ErrorDocument 404 /404.php
##### Redirect internally all URIs to /index.php ###############
# RewriteRule .* index.php
# Alternately This 1:
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule . /index.php
RewriteRule .* index.php
# This is for seo; it's a test, it hides the .php extension
# by the way it might be a conflict with the sitemap line
# RewriteRule ^(.*)\/$ $1.php [nc]
# Hide index.php
# RewriteCond %{THE_REQUEST} ^.*/index\.php
# RewriteRule ^(.*)index\.php$ /$1 [R=301]
# This Line needs to be changed it's for the sitemap.xml ######
# RewriteRule ^[^.]+$ - [T=application/x-httpd-php,L]