Forum Moderators: mack
to be redirected to http://www.example.com.
I tried to do this myself by going into my Control Panel (I use Pappashop's hosting service). In Control panel I was able to assign this redirect, but I realized I needed to alter my .htaccess file.
I did this after finding the (supposedly) appropriate code online, but it did not work. I know I uploaded the revised file correctly so it wasn't an error like that.
I am at a loss: my site will not come up now when i type in either URL (www.example.com or example.com).
I appreciate any help in advance. losing $$$ as I type...
RewriteRule category/new(.*).htm$ catalog.htm?new=yes&page=$1
RewriteRule category/new.htm$ catalog.htm?new=yes
RewriteRule category/sale(.*).htm$ catalog.htm?sale=yes&page=$1
RewriteRule category/sale.htm$ catalog.htm?sale=yes
RewriteRule category/all(.*).htm$ catalog.htm?all=yes&page=$1
RewriteRule category/all.htm$ catalog.htm?all=yes
RewriteRule category/featured(.*).htm$ catalog.htm?featured=yes&page=$1
RewriteRule category/featured.htm$ catalog.htm?featured=yes
RewriteRule category_(.*)/(.*)/(.*).htm$ catalog.htm?category=$1&page=$2
RewriteRule category_(.*)/(.*).htm$ catalog.htm?category=$1
RewriteRule item_(.*)/new/(.*).htm$ catalog.htm?item=$1&new=yes
RewriteRule item_(.*)/all/(.*).htm$ catalog.htm?item=$1&all=yes
RewriteRule item_(.*)/sale/(.*).htm$ catalog.htm?item=$1&sale=yes
RewriteRule item_(.*)/featured/(.*).htm$ catalog.htm?item=$1&featured=yes
RewriteRule item_(.*)/(.*)/(.*).htm$ catalog.htm?item=$1&catid=$2
RewriteRule item_(.*)/(.*).htm$ catalog.htm?item=$1
RewriteRule article_(.*)/(.*).htm$ articles.htm?article=$1
</IfModule>
AddType application/x-httpd-php .php .htm .htmlRewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.example\.com" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/www\.example\.com\/" [R=301,L]