A page, link or command that points URL requests to another URL in the world wide web. Redirects can be either server-side or client-side through the use of javascript.

learn more… | top users | synonyms (2)

1
vote
1answer
452 views

Is there any way to debug redirection rules in.htaccess?

I have an .htaccess file with over 200 redirection rules. It seems some of them are conflicting each other. Is there any way to find out which one is responsible of redirect on a particular request? ...
1
vote
2answers
141 views

Conditional redirect based on referring source?

Is it possible to redirect all traffic from a certain referring URL to a specific page?
2
votes
1answer
3k views

.htaccess redirect of domain name alias to main domain but must show up as the alias domain

I have the following in a .htaccess file: RewriteCond %{HTTP_HOST} ^www\.aliasdomain\.com$ [OR] RewriteCond %{HTTP_HOST} ^aliasdomain\.com$ RewriteRule ^(.*)$ http://www.maindomain.com/subdir1/...
2
votes
1answer
253 views

Stop site being shown as the referrer

I want to hide my site as the referrer to another site, ie. i dont want my site showing up under the referrals tab in Google analytics, is there a simple way to do this ? ie. an html element somthing ...
3
votes
1answer
7k views

PHP header redirect that maintains query parameters?

I am experimenting with the PHP redirect http://www.phpjunkyard.com/tutorials/php-redirect.php. Specifically the 301 redirect to create a self correcting URL to help with typos - there's a unique ID ...
1
vote
2answers
388 views

Serving proper 404/410 error codes on dynamic database driven site

a developer I'm working with is having a difficult time serving 404 errors on dynamically generated pages (they get created when the request is made by querying the database to see if the content ...
0
votes
3answers
303 views

Best way to replace/publish the restructured website in SEO friendly manner

I had a website which contains several subdomains. http://sub1.example.com/stories/23/job-done.html http://sub2.example.com/stories/23/job-done.html At present I decided to restructure my website ...
0
votes
1answer
375 views

Pointing a domain to a specific URL

Is it possible to point a URL to a specific page in cPanel? Say I have foobar.com and there's a page foobar.com/art. Now I also or artbar.com and I want to point it at foobar.com/art how would I do ...
1
vote
1answer
81 views

Added new redirected domain with lots of visitors bouncing - is that bad for us? [duplicate]

We're a very niche domain marketplace, which has a few hundred domain names for sale, and most all of them are redirected to our site. Most get a few clicks a day, as they are non-keyword (generic ...
3
votes
4answers
245 views

Is it correct to redirect useless “?” URLs to cleaner URLs

This is not about redirecting /index.php?id=6252 to /category-name. It's about redirecting: /category-name?ref=blabla&something=useless-stuff /category-name? /category-name???????? to: /...
0
votes
2answers
76 views

How do I properly deal with duplicate content when showing the latest content from my blog on a main page?

If my website has multiple blogposts: /blog/first-post.html /blog/second-post.html /blog/third-post.html ... and I want only the latest post to be fully shown on /blog/ What is the best way to ...
3
votes
2answers
3k views

How can I make redirections cacheable to speed up load times?

Google PageSpeed says this: Avoid landing page redirects To speed up page load times for visitors of your site, remove as many landing page redirections as possible, and make any required ...
2
votes
2answers
459 views

SEO: Redirecting an incoming link to a discontinued product to a very similar product

We run an e-commerce site where products sometimes get discontinued. There are some links from other websites that points to one of our products (A) that doesn't exist anymore, but we have a very ...
0
votes
2answers
1k views

300, 302, 303 or 307 redirect for international site?

A company website offers the same products and pages (more or less) across different countries. It's a mess; they use a mix of subdirectories, subdomains and ccTLDs for international sites: us....
4
votes
2answers
239 views

One million redirects

What's the best way to redirect 1,000,000 unique URLs to another 1,000,000 unique URLs? These pages are all combinations of multiple search filters and queries. We're migrating the site to cleaner ...
2
votes
1answer
49 views

In case of a server error, should I change the URL in the address bar?

Let's say the user surfs to http://mysite.com/some-path and encounters error 500 which leads to a custom error page. What is the best practice regarding the URL shown in the address bar while in the ...
3
votes
1answer
462 views

Can I use meta refresh instead of 301 redirect?

I have submitted my site with ugly URLs to Google, and now they are appearing as mysite.com/show.php?id=42. Now, I know that I can 301-redirect it to mysite.com/article/42. However, my site uses the ...
1
vote
2answers
938 views

301 Redirection for classic ASP website with IIS 6 server

I am new in the SEO field. I have relaunched my old website to a new one, and my guess is I need to 301-redirect some/many of my old pages. But I have deleted some of the pages from server which is ...
3
votes
2answers
2k views

Redirect URL ending with dot

I submitted my site's URL to my workplace's printed newsletter and when I get the printed version, they added a dot to the end of it. Some people will realize that the period is not a part of the URL ...
1
vote
2answers
364 views

Can I have tracking parameters immediately after a forward slash /?

I would like to start redirecting all /index.php pageviews to / to clean up GA data and otherwise simplify URL hits. Does anyone foresee this causing any problem when using tracking parameters? E.g. ...
1
vote
1answer
367 views

.htaccess file to implement multiple redirects

I have a dynamic site and from .htaccess file creating clean URLs: RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.gif|\.jpeg|\.bmp)$ RewriteRule ^([a-zA-Z0-9_\-\+\ ]+)$ flight.php?flights=$1&slug=$1 ...
4
votes
3answers
1k views

Will a redirected subdomain lose Google SEO links?

Because of a change in brand, I want to redirect our subdomain.domain.com to newdomain.com. The content being exactly the same, I was thinking of using a 301 wild card redirect to newdomain.com. I ...
1
vote
1answer
101 views

Canonical redirection meta tag [duplicate]

There are two pages in my website with the same content; only the URL's are different: www.websitename.com and www.websitename.com/default.html. Someone suggested that I should add canonical tags to ...
2
votes
3answers
2k views

URL without trailing slash makes Apache look in non-SSL DocumentRoot

I have configured a virtual host in Apache for serving content over SSL/TLS. Since I also want to allow other sites on my domain to use regular http, I have two document roots, one at /home/www/html ...
1
vote
2answers
144 views

ASP to HTML - 301 redirects (SEO rankings before and after)

I need to change the extension of the default pages and many other pages like .asp to .html, should I use a 301 redirect? The website is in the top 10 results for many keywords, I don't want to lose ...
0
votes
1answer
39 views

Is it okay to redirect all mobile users to a mobile coming soon page?

I recently read this article on google webmasters blog which said that we should avoid redirection of users on mobile to one single page as it interrupts their flow. Now I have a site on which I have ...
2
votes
3answers
317 views

Fastest way to redirect dead URLs to home page

A client of mine scrapped his entire wordpress site of many years for a custom CMS. The URL structures both use the /<post_title> format, so a pattern based .htaccess rule is out of the picture ...
2
votes
2answers
1k views

What's the most efficient & economical way to do GeoIP redirects for a high traffic site?

So, I'm setting up a new potentially high traffic site that's made up of several simple static pages. We want to host it as efficiently as possible, as we're both on a non-existent budget and may have ...
1
vote
2answers
807 views

Redirect incomplete URL to index page

I want to redirect specific URLs to the index page not to 404 error page (ex: http://www.website.com/trip-15). If I remove any character from the URL it will go to 404 error page (ex: http://www....
1
vote
0answers
116 views

How can I mask sub-directory to work as DocumentRoot for multiple domains pointing to the same location?

I am trying to mask sub directories to effectively work as DocumentRoot for multiple domains. e.g. I have two domains - domain1.com & domain2.com both pointing to the same location. I want ...
5
votes
2answers
264 views

Multiple top level domains - should I redirect/rewrite or leave them?

I have a website which has many top level domains e.g. mywebsite.com mywebsite.org mywebsite.co.uk mywebsite.org.uk The website is advertised as mywebsite.org.uk. But I expect lots of people will ...
0
votes
1answer
566 views

Permanent redirect domain to www subdomain without web.config

I've just set up a site via 1and1 and have run into an issue, I want to accomplish the simple task of redirecting the root domain to the www sub domain however due to complications I cant seam to ...
1
vote
2answers
413 views

Domain, subdomain and path forwarding

I have four domains: domain.in domain.com domain.org domain.co.in I want to make domain.in as my main domain. I want to forward all my other domains to it. I want to set up forwarding such that: ...
0
votes
0answers
21 views

Redirect of www vs. “all works” [duplicate]

I was asked a question from a friend if he should redirect his-domain.com to www.his-domain.com. I answered him that it seems more intuitive to just make both work. So if you enter by his-domain.com ...
0
votes
0answers
34 views

Create A record from the terminal

I have contracted a linux VPS and a domain (www.myproject.com). After that, in the same site from my user area, I have registered a pair of DNS (ns1.myproject.com and ns2.myproject.com) associating ...
1
vote
1answer
7k views

How to redirect IP to domain?

My IP xxx.xxx.xxx.xx is pointing to example.com at GoDaddy but I just noticed that when I type the IP in browser, it doesn't redirect to the website, how can do this? I am sure this will happen ...
1
vote
2answers
2k views

Automatic redirection from http to https with .htaccess authentication in virtual hosting

Hi I have configured Virtual host on apache with .htaccess authentication with SSL. It's working fine when I typed url https://www.example.com:9004/test.php but when I typed http://www.example.com:...
3
votes
2answers
131 views

Changing domain name vs URL redirect to improve URL building

I have a domain named companyname.com with PR3 and would like to improve the SEO by adding my main keyword in the domain name. I'm thinking about: Buying the domain main-keyword-companyname.com and ...
1
vote
2answers
1k views

Conditional RedirectMatch based on IP

How do I use this RedirectMatch with limiting by IP address? This is what I have right now, and it works as is: RewriteRule ^dir.*$ http://www.mysite.org/otherdir/ [R=302,L] I want this to work ...
2
votes
1answer
242 views

map a sub page of a domain to google sites

I control a subpage of a site: economics.university.edu/summerschool I have access to CNAME, etc. However I want to use Google sites to create the site and then map the URL above to my Google site. ...
4
votes
0answers
17 views

Impact on social interactions after URL change [duplicate]

Every article URL on a website I work on will soon be changed. 301 redirects will be set up to ensure inbound links still arrive at the correct destination. However, social interactions (Likes and ...
0
votes
1answer
91 views

replace direct link to amazon s3

I moved my downloadable files to amazon s3 and used that link from my wordpress site. I realized that if I use amazon link, google analytics wont be able to track all the files. correct? whats the ...
4
votes
1answer
689 views

Google AdWords have flagged my site as containing malware

However, there Webmaster Tools does not - and never has. And we have never had a message via Webmaster Tools or Analytics that we have malware. To quote Google: [The Malware Team] have looked at ...
3
votes
2answers
171 views

Can a redirect (and then redirect back) to check to see if users are logged-in hurt SEO?

I have a SaaS product which is hosted under several different domains. However, there is one company that manages all these domains. They asked for a system to be able to login at domain1.com and ...
2
votes
1answer
70 views

what should be my initial address for sitemap and robots.txt if I'm using redirection

What should be my initial adress when using this site: http://www.xml-sitemaps.com? I have a folder inside my root where I have all my files. For example I have domain.com and my start directory is ...
3
votes
1answer
256 views

Soft 404 error on redirected outbound links

I have a redirect script on my site which sends visitors to an affiliate site. However in the last month I've noticed that Google webmaster tools is reporting my outbound links as a 404 error. Here is ...
1
vote
2answers
230 views

How to avoid duplicate content even when using 301 redirections?

I manage a website with tens of thousands of pages named /view.php?id=1234 and so on. Because we wanted it to be more SEO-friendly, a 301 Moved Permanently redirection of each one of them to /view/...
2
votes
1answer
456 views

Redirect domains single pages and maintain url

I have several domain names that need to point to individual pages on a single host and still maintain the URL. For example: examplesite1.com needs to point at mainsite.com/examplesite1.php but ...
1
vote
1answer
70 views

Redirecting previous domain subfolder links

I've recently bought a domain that was unregistered. After looking in Google webmaster tools, Google is trying to crawl random pages that don't exist. Turns out it did have a previous owner. The ...
4
votes
1answer
2k views

What are the most commonly used and basic Apache htaccess redirects?

This question is here so we can offer users who are looking for information on how to make one or more common or basic redirects in Apache using the htaccess file. All future questions pertaining to ...