Forum Moderators: phranque
If it matters, I already have this in my htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) http://www.domain.com/$1 [L,R=301]
Thanks.
[edited by: jdMorgan at 5:13 pm (utc) on Aug. 12, 2005]
[edit reason] Corrected code formatting. [/edit]
[httpd.apache.org...]
RedirectPermanent /directed-page.html [MyDomain.com...]
I did a header check of /directed-page.html and it shows "HTTP/1.1 301 Moved Permanently". Is what I did better than:
Redirect 301 /page-name [mydomain.com...]
or is that method above better?
Thanks.
the resulting URL becomes
[domain.org...]
what i am expecting is
[domain.org...]
How can i remove the "?"?
Thanks
[MyDomain.com...]
and
[mydomain.com...] (no file extension here)
are not the same thing. One is a page name with the .html file extension, the other indicates that it's the root level page of a sub-directory or a page with no file extension. You don't want to confuse bots, be precise and put exactly what the page is.