- Code: Select all
RewriteEngine On
RewriteBase /
RewriteRule ^detail detail.php
RewriteRule ^list- list.php
I want to add some line, so that will redirect http://www.domain.com to http://domain.com
can you help me? thnks.
RewriteEngine On
RewriteBase /
RewriteRule ^detail detail.php
RewriteRule ^list- list.php
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(example\.com)$ [NC]
RewriteRule .* http://%1%{REQUEST_URI} [R=301,L]
RewriteRule ^detail /detail.php [QSA,L]
RewriteRule ^list- /list.php [QSA,L]
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule .* http://www.domain.com/$ [R=301,L]
RewriteRule ^home/$ /index.php [QSA,L]
RewriteRule ^purchase-gift-certificates/$ /checkout.php [QSA,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(example\.com)$ [NC]
RewriteRule .* http://www.%1%{REQUEST_URI} [R=301,L]
RewriteRule ^home/$ /index.php [QSA,L]
RewriteRule ^purchase-gift-certificates/$ /checkout.php [QSA,L]
Users browsing this forum: No registered users and 109 guests