Hi frinds...
My CMS is joomla with actived core sef:
I have some error in URL's
----------------------------------------------------
Error 1:
I had 4 URL's for my first page:
(with or without www)
The non-sef url1:
www.hafezna.ir/index.php
The non-sef url2:
www.hafezna.ir/home.html
The non-sef url3:
www.hafezna.ir/home
The sef url1:(It's My Favorite)
www.hafezna.ir/
------------------------------------------------------
Error 2:
I have 3 URLS for one article:
The non-sef url4:
[
hafezna.ir...]
The non-sef url5:
[
hafezna.ir...]
The sef ur2: (It's My Favorite)
[
hafezna.ir...]
_________________________________________________________
Now,
I want redirect all non-sef urls to my firstpage (www.hafezna.ir)!
How can I do it?
I tried redirect "The non-sef url4" and "The non-sef url5" to "The sef url1"
It was successful for "The non-sef url5" (with index.php) but not for "The non-sef url4"(without index.php)
RewriteCond %{THE_REQUEST} ^\?option=(.*)\ HTTP/
RewriteRule ^index\.php$ http://www.hafezna.ir? [R=301,L]
can any body help me?