Posts

Showing posts with the label htaccess

How to form redirect or rewrite where query string contains portion I want to extract to new query string

How to form redirect or rewrite where query string contains portion I want to extract to new query string - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How to form redirect or rewrite where query string contains portion I want to extract to new query string error on your web browser.  Problem : I've transferred an old custom-made site to Mediawiki and I have many internal and external links to my old pages that I want to redirect to the appropriate wiki page. Ther...

Create htaccess infinite redirection to random URLs to prevent Facebook crawling

Create htaccess infinite redirection to random URLs to prevent Facebook crawling - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Create htaccess infinite redirection to random URLs to prevent Facebook crawling error on your web browser.  Problem : I want make an infinite series of 302 redirects. For example: Visitor accesses example.com Which 302 redirects to example.com/abc Which 302 redirects to example.com/xzy Which 302 redirects to example.com/ghi ... etc in an ...

Redirect a single URL to the same URL on another domain

Redirect a single URL to the same URL on another domain - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Redirect a single URL to the same URL on another domain error on your web browser.  Problem : I'm trying to set up my .htaccess file to take the displayed link and route it to the destination link as below Displayed Link http://www.my-website.com/click-4559226-10388358?url=https%3A%2F%2Fdestination-website2.com%2FItem.php%3Fid%3D44350396%26sld%3DA6D7A632-821E-4b78-...

.htaccess rewrite www to non-www and remove .html

.htaccess rewrite www to non-www and remove .html - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the .htaccess rewrite www to non-www and remove .html error on your web browser.  Problem : I need rewrite rules to redirect the following: http://www. to http:// /file.html to /file I've tried using a combination of these but each time it results in a redirect loop on one of the situations RewriteBase / RewriteRule ^(.*).html$ $1 [NC] RewriteCond %HTTP_HOST ^www.domain.co...

.htaccess directives fail to redirect www to non-www URLs

.htaccess directives fail to redirect www to non-www URLs - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the .htaccess directives fail to redirect www to non-www URLs error on your web browser.  Problem : I'm trying to redirect https://www.example.com to https://example.com . I'm running Ubuntu server 2020 lts with Apache 2, PHP 7 and Let's Encrypt SSL. My file structure: logs/ private/ public/ └ index.php .htaccess index.php My Apache2 config file ( /etc/ap...

htaccess rewrite url

htaccess rewrite url - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the htaccess rewrite url error on your web browser.  Problem : is it possible to create a 301 redirect for the following URL string: Original URL: http://www.example.com/old/old-directory/blog-post-1.html Desired destination URL: http://www.example.com/new/new-directory/1.html Solution : Using a mod_alias Redirect in your root .htaccess file: Redirect 301 /old/old-directory/blog-post-1.html /new/n...

I have 2 domains one main, one parked. I recently switched but host provider told me theyd repoint the DNS but there are problems? Do it via DS

I have 2 domains one main, one parked. I recently switched but host provider told me theyd repoint the DNS but there are problems? Do it via DS - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the I have 2 domains one main, one parked. I recently switched but host provider told me theyd repoint the DNS but there are problems? Do it via DS error on your web browser.  Problem : I wanted to switch my site from www.mutantspace.ie to www.mutantspace.com . Up until now the .co...

Mobile traffic of my second site redirected to my base site [Edited,have a look] [closed]

Mobile traffic of my second site redirected to my base site [Edited,have a look] [closed] - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Mobile traffic of my second site redirected to my base site [Edited,have a look] [closed] error on your web browser.  Problem : Closed. This question is off-topic . It is not currently accepting answers. ...

.htaccess language redirects with SEO-friendly URLs

.htaccess language redirects with SEO-friendly URLs - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the .htaccess language redirects with SEO-friendly URLs error on your web browser.  Problem : How do I setup my .htaccess file to detect several languages, and redirect them to specific SEO-friendly URLs? Basically every URL needs to go to index.php?lang=(...) . So, for English language detection http://mysite.com has to go to http://mysite.com/en/ ( index.php?lang=en ...

.htaccess redirect url to a subfolder on a subdomain with exceptions

.htaccess redirect url to a subfolder on a subdomain with exceptions - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the .htaccess redirect url to a subfolder on a subdomain with exceptions error on your web browser.  Problem : I have a CMS installed on a subdomain (say blog.domain.com ). I created a site on it but the site can be accessed at ( blog.domain.com/sites/mysite ). I also have to use other links like blog.domain.com/#/create and blog.domain.com/#/login/mysite...

When mass redirecting URLs from the old site, can I redirect everything to the home page of the new site for SEO?

When mass redirecting URLs from the old site, can I redirect everything to the home page of the new site for SEO? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the When mass redirecting URLs from the old site, can I redirect everything to the home page of the new site for SEO? error on your web browser.  Problem : I need to redirect thousands of URLs to my new site (its the same domain, but now is on Wordpress), I don't want to lose all the SEO from the old posts, but ...

301 redirect with regex: how to match any file at top domain level (not in a subdirectory)?

301 redirect with regex: how to match any file at top domain level (not in a subdirectory)? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the 301 redirect with regex: how to match any file at top domain level (not in a subdirectory)? error on your web browser.  Problem : I need to redirect URLs of all .dmg files at domain's top level to specific folder. By way of example: http://example.com/file.dmg to http://example.com/downloads/file.dmg I can't hard code the d...

How can I setup a redirect using an .htaccess that would keep part of the URL path?

How can I setup a redirect using an .htaccess that would keep part of the URL path? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How can I setup a redirect using an .htaccess that would keep part of the URL path? error on your web browser.  Problem : I would like to setup a redirect using an .htaccess file which keeps part of the URL's path in the target URL. For example: I have the domain example.com . I want example.com/social to redirect to twitter.com . BUT ...

301 redirect in .htaccess - old URL includes ?page_id=

301 redirect in .htaccess - old URL includes ?page_id= - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the 301 redirect in .htaccess - old URL includes ?page_id= error on your web browser.  Problem : I want to 301 redirect several URLs from an old WordPress installation within one subdirectory to a new WP installation within a different directory of the same domain. I.E.: http://www.example.de/abc/?page_id=123 needs to go to: http://www.example.de/xyz/newindividualpage/ ...

Want to redirect my site all pages to /blog

Want to redirect my site all pages to /blog - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Want to redirect my site all pages to /blog error on your web browser.  Problem : For example my site: www.example.com When anyone visits my site, I want them all to redirect to www.example.com/blog But when I open my site it should not redirect me to blog, it should work normally. So how can I achieve the above using .htaccess? I am going to apply the following code to redire...

Redirect with HTTP_HOST redirects to sub subdomain

Redirect with HTTP_HOST redirects to sub subdomain - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Redirect with HTTP_HOST redirects to sub subdomain error on your web browser.  Problem : The settings I have the following .htaccess rule RewriteCond %HTTP_HOST !^www. RewriteCond %HTTP_HOST !^de. RewriteRule ^(.*)$ http://www.%HTTP_HOST/$1 [R=301,L] This works great to redirect any subdomain that is not valid ( www or de ) to the www subdomain. I have seen solution,...

Redirect URL without lang directory to default language

Redirect URL without lang directory to default language - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Redirect URL without lang directory to default language error on your web browser.  Problem : This: example.com/test/ should redirect to: example.com/en/test/ , but: example.com/es/test/ shoudn't redirect. in this case /test/ could be anything, with any number of levels (i.e.: /test/succeeded/ or / ). It's an apache server, with .htaccess. ... RewriteEngin...

Redirect to non-www and non-https in htaccess

Redirect to non-www and non-https in htaccess - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Redirect to non-www and non-https in htaccess error on your web browser.  Problem : I need to redirect my WordPress blog from https://www.example.com/blog to http://example.com/blog using the .htaccess file. This is what I have so far: <IfModule mod_rewrite.c> Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase / RewriteEngine On Rewr...

Why does my .htaccess work for all browsers but Internet Explorer?

Why does my .htaccess work for all browsers but Internet Explorer? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Why does my .htaccess work for all browsers but Internet Explorer? error on your web browser.  Problem : The code .htaccess below is working on all browsers, except for IE (I tested it on IE10 and IE11). The goal is to redirect all HTTP traffic to HTTPS, but IE seems to ignore it. Does IE need specific code? # BEGIN GD-SSL <IfModule mod_rewrite.c>...

How to display "Not Found" instead of automatic redirecting?

How to display "Not Found" instead of automatic redirecting? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the How to display "Not Found" instead of automatic redirecting? error on your web browser.  Problem : how to redirect to 404 in .htaccess file ? Example www.domain.com/ja/any_post or www.domain.com/ja/all_posts www.domain.com/fr/any_post or www.domain.com/fr/all_posts A little bit more explaining can't hurt. Example: My original post ...