Hello Every one,
As I am running a site but I am getting a little problem i.e.
When I use the URL e.g. http://www.example.com/ this URl automatically redirects to http://example.com/ but I want to use both domain prefixes i.e. http://www.example.com/ and http://example.com
here is my .htaccess Rewrite mod code please help me in this problem as soon as possible
.htaccess code <IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php?action=/$1
# Image Access Protection
# RewriteRule ^file/pic/photo/(.*)\.(.*)$ static/image.php?file=$1&ext=$2
</IfModule>
Please post the code I'll be very thankful to you [edited by: jdMorgan at 12:17 am (utc) on Jun 16, 2010]
[edit reason] Please use example.com only [/edit]