popcorn-time / popcorn-time.github.io

Site for getpopcornti.me
getpopcornti.me
246 stars 199 forks source link

Redirects Pending - SEO Issue #13

Open ggonzaleza opened 10 years ago

ggonzaleza commented 10 years ago

Redirect 301 of http://getpopcorntime.com to http://getpopcornti.me Redirect 301 of http://getpopcornti.me/index.html to http://getpopcornti.me Redirect 301 of http://getpopcornti.me/tos.html to http://getpopcornti.me/tos Redirect 301 of http://getpopcornti.me/faq.html to http://getpopcornti.me/faq

heyimjuani commented 10 years ago

@guillermoga88 thanks for reporting this.

The domain was not registered by us. We'll try to get in touch with the domain registrar and the hosting company to see how we can solve this.

ggonzaleza commented 10 years ago

Ok, no problem :) You can still solve the other redirects. I wrote a .htaccess file that will be helpful. It will solve all your redirects even if you add any subfolder. Also it's using Gzip compression for improving page load speed. I've already tested in my server. Hope it helps! Here it is: # Options FollowSymLinks -MultiViews RewriteEngine On RewriteBase /

Index redirection

RewriteRule ^index.html$ / [R=301,L] RewriteRule ^(.*)/index.html$ /$1 [R=301,L]

Access to extensionless .html

RewriteCond %{REQUEST_FILENAME} ^index.* RewriteRule ^([^/]+)$ $1.html

Removing extension from future subdirectories

RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(([^/]+/)*[^./]+)$ $1.html

Redirecting extensionless .html

RewriteCond %{THE_REQUEST} ^(.+).html([#?][^\ ]*)?\ HTTP/ RewriteRule ^(.+).html$ $1 [R=301,L]

Redirecting trailing slash /

RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(.*)/$ /$1 [R=301,L]

Gzip Compression - text, HTML, JavaScript, CSS, and XML

AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript

Removing browser bugs

BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent