OT: Server side SEO help please..

..via the .htaccess file.

I have two major server side SEO problems (copy of actual error messages). 1) IP canonicalization. A web document accessible at the IP address doesn't redirect to the URL version of the website (Not implemented). 2) Server signature problem. HTTP response contains the version of the web server exposing its vulnerabilities (Apache/2.4.23, Unknown).

There is an "example" .htaccess file available. Like all "examples" i have seen, that one does not work as-is. After a few fixes, most of it works, but but obviously these two problems are not fixed.

I cannot get #1 fixed; a minor change that looks good, causes a major crash and a 500 Internal Server Error: RewriteCond %{HTTP_HOST} ^107\.180\.48\.115 RewriteRule (.*)

formatting link
$1 [R=301,L]

I have no clue how to fix #2.

So far, i have wasted over 100 man-hours searching the web and asking "SEO" sellers/providers to no aval.

One thing that pisses me off, is that all "SEO" groups/sellers/providers/etc REFUSE to address any part of this.

Help? (thanks in advance)

Reply to
Robert Baer
Loading thread data ...

Am 14.04.2017 um 08:14 schrieb Robert Baer: ...

^

^ ^ ^

In my setup, the rule is: RewriteCond %{http_host} ^loosweb.de [nc] RewriteRule ^(.*)$

formatting link
$1 [r=301,nc]

I don't use it for IP-addresses but only for omitted "www." Google doesn't like identical sites with www and without...

I don't think this can be done via .htaccess. If possible, it must be done somewhere in the Webserver's conf.

Robert

Reply to
Robert Loos

Thanks. Made some changes; now have (note got rid of "www"): ## SEO REWRITES (based on another source) # # use correct IP 107.180.48.115 ip.secureserver.net #OUR IP# # At lest, the following does not crash server error 500 RewriteEngine on #RewriteCond %{HTTP_HOST} ^107\.180\.48\.115 #RewriteRule ^{.*}$

formatting link
$1 [R=301,L] # above added to test.. does NOTHING; Redirect also fails. #Redirect 301 ^107\.180\.48\.115
formatting link
#RewriteCond %{HTTP_HOST} ^oil4lessllc\.com$ [NC] #RewriteRule ^{.*}$
formatting link
$1 [R=301,L] #RewriteCond %{HTTP_HOST} ^oil4lessllc\.com$ [NC] #RewriteRule ^{.*}$
formatting link
$1 [R=301,L] #RewriteCond %{HTTP_HOST} ^http://oil4lessllc\.com$ [NC] #RewriteRule ^{.*}$
formatting link
$1 [R=301,L] #RewriteCond %{THE_REQUEST} ^.*/index.html #RewriteRule ^{.*}index.html$
formatting link
$1 [R=301,L] RewriteCond %{HTTP_HOST} ^$ [NC] RewriteRule ^{.*}$
formatting link
$1 [R=301,L] RewriteCond %{THE_REQUEST} ^.* RewriteRule ^{.*}index.html$
formatting link
$1 [R=301,L] # redirects to "www" is dropped by server if attempted.

Reply to
Robert Baer

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.