Tag Info

Hot answers tagged

8

For your first two rewrites (non-www → www, http → https), the following rule should work: RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !=www.example.com [NC] RewriteRule ^(.*) https://www.example.com/$1 [NS,L,R=permanent] Just replace www.example.com with the actual canonical hostname of your site. As for your third ...


2

HTTPS/HTTP is a protocol and technically are not classed as a new site You do not need to inform Google Webmaster Tools that your site has moved, this is because HTTPS and HTTP are protocols and not are not treated the same as say changing domain or sub domain. You can even see when adding a site to webmaster tools it doesn't even ask for a protocol: ...


1

So you want to serve the content that's on a.com/xyz on b.com? Definitely possible but that's duplicate content and it's not something you want if you care about SEO. Better go with one of these options: simply 301 redirect from b.com to a.com/xyz. serve the content only on b.com. keep duplicate content and make sure the content on either a.com or ...


1

Perfectly fine to 301 redirect all HTTP pages to their HTTPS equivalent. Either via httpd.conf on Apache servers, .htaccess rewrites or with a PHP include like your example. Any inbound links would pass about 97% of weight through a 301 redirect. The best handling internally would be to not use the protocol for internal linkage so that compatibility is ...


1

I think the following mod_rewrite directives should do what you require, however, whether they do anything at all may be dependent on your configuration. RewriteEngine on RewriteCond %{QUERY_STRING} rsform RewriteRule ^joomla/(.+)$ http://watervriendengeleen.nl/formulieren/$1 [L,R=301] This redirects all requests for files in your /joomla/ subfolder, ...


1

If they want content on the sites they own they should put unique content on it. One page is enough. Much better than 302ing to your site.


1

I need to double check the specifications, but I am pretty certain that cached objects depend on the request method. So an object using HTTP would be a different cache entity from HTTPS. So if you are redirecting to HTTPS, there should be no prior cache data. Also, you may want to consider using lower cache periods and requiring validation prior to ...


1

I don't know about GoDaddy's error, other than maybe it is expecting example.com rather than www.example.com (although I doubt it)?! You don't actually need to specify the host if redirecting on the same site? But anyway, this is easy to do in your root .htaccess file using mod_alias: Redirect 301 /oldpage.html /new-page.html (This assumes Apache 2.2.6+ ...


1

Would this be done on the internal IIS web server I assume you're using IIS. It's possible with IIS. There are several ways. I will show the way where you use the web.config file. In your web.config file put the following code: <rewrite> <rules> <rule name="Redirect domain.com to www" patternSyntax="Wildcard" ...


1

I am assuming that you still want requests that look like: http://www.parsilatex.com/joomla/index.php/1391-09-23-16-04-58 ...to still work. If this is not the case, please leave a comment and I will update the answer. I have not tested this here, but try: RewriteEngine On RewriteCond %{REQUEST_URI} $/joomla/index\.php^ [NC] RewriteRule .* ...



Only top voted, non community-wiki answers of a minimum length are eligible