Hello,
I have following rewrite rule for the detailed pages:
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ /Detailed/$1.html [L]
RewriteRule ^/Detailed/(.*)$ /cgi-bin/glinks3/page.cgi?g=$1.html [L]
which works fine
However, when i add following
RewriteCond %{HTTP_HOST} !^www.glinksdomain.com
RewriteRule (.*) http://www.glinksdomain.com/$1 [R=301,L]
The first one breaks. It just navigates to http://www.glinksdomain.com/Detailed/285html.html (a page not found) for example when the link is clicked from google to the said page, a link which does not have www as on google.
Can this be corrected to that i have a 301 redirect (forcing www in the url) and at the same time not breaking the static looking Detailed pages.
Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
I have following rewrite rule for the detailed pages:
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ /Detailed/$1.html [L]
RewriteRule ^/Detailed/(.*)$ /cgi-bin/glinks3/page.cgi?g=$1.html [L]
which works fine
However, when i add following
RewriteCond %{HTTP_HOST} !^www.glinksdomain.com
RewriteRule (.*) http://www.glinksdomain.com/$1 [R=301,L]
The first one breaks. It just navigates to http://www.glinksdomain.com/Detailed/285html.html (a page not found) for example when the link is clicked from google to the said page, a link which does not have www as on google.
Can this be corrected to that i have a 301 redirect (forcing www in the url) and at the same time not breaking the static looking Detailed pages.
Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================