| htaccess 001 redirects |
|
|
|
| Written by Administrator2 |
| Thursday, 26 June 2008 00:32 |
|
So you figured out how to rename your htaccess.txt to .htaccess and your loving your SEF. Google is indexing your site, you have 20K pages listed on the search engines. But you decide to slightly change that SEF URL and BAMB Or you don't like when people goto http://joomlamafia.com you want them to go to http://www.joomlamafia.com (go on click both links and watch what happens you cant go to http://joomlamafia.com without being redirected to http://www.joomlamafia.com can you? RewriteEngine On
RewriteBase / Options +FollowSymLinks ErrorDocument 404 http://www.joomlamafia.com RewriteCond %{HTTP_HOST} ^joomlamafia\.com [NC] RewriteRule ^(.*)$ http://www.joomlamafia.com/$1 [L,R=301] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.shtml\ HTTP/ RewriteRule ^index\.html$ http://www.joomlamafia.com/ [R=301,L] This should help you out quite a bit.
Set as favorite
Bookmark
Email This
Hits: 642 Trackback(0)
Comments (0)
![]() Write comment
|
| Last Updated on Thursday, 26 June 2008 01:12 |