What the the code for Apache REWRITE mode if I want to pass the PR from http://www to http:// (or from http:// to http://www) How fast I will see : 1. modifcations in SERP 2. modifcation of my PR (like if I will pass PR from a site to anather one , shoudl I waith till the next PR update, or the transfer will be at the next time google will crawl my site?!) Is it okay to do this ? could it harm my site? I put lot's of links to my site but i used http:// insted of http://www....
In your old site's .htaccess, put : You'll see changes at the next PR update, if PR is what you are interested.
Because the initial poster actually wanted to redirect the non-www domain.com version to the www version, use this in your .htaccess:
I am getting this error message : Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. -------------------------------------------------------------------------------- Apache/1.3.34 Server at www.softgroups.com Port 80
Using the code i gave you above ? I presume you DID changed the "yourdomain\.com" URL, to match your own url
I tried the same thing earlier on two diffrent servers. One using apache 1.3 and one using 2.0. I only got it working with 2.0. Maybe some module needs to be added for 1.3? Anyhow. I solved it with making two virtual hosts instead, like this: <VirtualHost 217.25.247.87> ServerAdmin taliz@apathia.net DocumentRoot /home/jf/public_html/ ServerName jail.se RewriteEngine on RewriteCond %{HTTP_HOST} ^jail\.se RewriteRule ^(.*)$ http://www.jail.se$1 [R=301] </VirtualHost> <VirtualHost 217.25.247.87> ServerAdmin taliz@apathia.net DocumentRoot /home/jf/public_html/ ServerName www.jail.se ErrorLog /var/log/www/jail.se-error_log CustomLog /var/log/www/jail.se-access_log combined </VirtualHost> Code (markup): If you have access to the httpd.conf maybe you should consider using this instead of .htaccess.