Can I 301 redirect old URLs to staging URLs (ex. staging.newdomain.com) for testing?
-
I will temporarily remove a few pages from my old website and redirect them to a new domain but in staging domain. Once the redirection is successful, I will remove the redirection rules in my .htaccess and get the removed pages back to live.
Thanks in advance!
-
But what if I remove the 301 redirect rules in my .htaccess file right(a few minutes) after successfully checking the redirected URLs?
-
If the redirect to the testing site actually is temporary, this is one of the very few instances I would recommend using a 302 redirect. This way, the engines will understand that you aren't making this a permanent move and will, hopefully soon, remove the redirect when the staging site goes live.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
URL masking
Hi all, Within my organization we maintain a bunch of websites, say child1.com, child2.com and child3.com. It was recently suggested that we merge all three into a single one, say mother.com. The marketing community within my organization strongly argued against this, mainly due to risks related to brand awareness, rank and traffic loss for each of these websites. But we resigned to the idea that we must do it, so we started considering the next proper steps. Now, my understanding is that setting up redirects is crucial in order to cushion the fall and mitigate the losses. However, some people are suggesting url masking. To me personally, url masking doesn't sound like a white hat practice, maybe it's borderline grey, but the bottom line is I need some advice on this topic. Could someone kindly address the following: 1. How is url masking different from url redirect? 2. Is url masking different from url cloaking? 3. Would google penalize us for implementing url masking? 4. Would that have any impact on our PPC campaigns? 5. Are there any documented cases of successful and google-sanctioned websites that are actively using url masking? 6. Are there any pitfalls to using this strategy? Thank you
White Hat / Black Hat SEO | | SimonaCretu0 -
Do we lose Backlinks and Domain Authority of URL when we change domain Name?
Have 1 performing domain (Monthly - 4M visitor ) now we want to change domain name ( Brand name like SEOMOZ to Moz ). I have general knowledge about domain changing prevention tips like 301 redirection and other thing. My concern is about backlinks and DA. How can I prevent any lose from SEO Point of view. (backlink lose) Do I need to change all backlink form source or redirection is enough to get all reference traffic from that backlinks?
White Hat / Black Hat SEO | | HuptechWebseo0 -
Canonical tag On Each Page With Same Page URL - Its Harmful For SEO or Not?
Hi. I have an e-commerce project and they have canonical code in each and every page for it's own URL. (Canonical on Original Page No duplicate page) The url of my wesite is like this: "https://www.website.com/products/produt1"
White Hat / Black Hat SEO | | HuptechWebseo
and the site is having canonical code like this: " This is occurring in each and every products as well as every pages of my website. Now, my question is that "is it harmful for the SEO?" Or "should I remove this tags from all pages?" Is that any benefit for using the canonical tag for the same URL (Original URL)?0 -
New Software Requires us to redirect a sub domain to another IP Address.
I operate a local print and direct mail company located in Houston called Catdi Printing (www.catdi.com)We do very well with our local rankings and rank 1 or 2 in our main keywords ( direct mail Houston & eddm Houston ) We are looking to upgrade our online quoting and ordering system. The software is very expensive and the only way we can incorporate this new system is create on our end a new subdomain (printing.catdi.com) and redirect it to an ip thats with their server. Their server is located in Californiaa and might even be hosted by Google but im not certain on this point. Our current host provider is Hostgator and they are based in Houston so im not this provides any benefit. I guess my main question is will Google look at this negatively? Would this change our SERPS organically and what about how Google indexes pages on the subdomain? Im also concerned that the load times will be off and make the user experience awkward. Any feedback is greatly appreciated!
White Hat / Black Hat SEO | | ChopperCharlie0 -
Domain.com/XXX or domain.com/blog/XXX ?
i have a business and a side blog on the website. is it fine to turn my blog to domain.com/XXX instead of domain.com/blog/XXX? does it in anyway of these affect the SEO?
White Hat / Black Hat SEO | | andzon0 -
Can a domain name alone be considered SPAM?
If someone has a domain that is spammy, such as "http://seattlesbestinsurancerates.com" can this cause Google to not index the website? This is not our domain, but a customer of ours has a similar one and it appears to be causing issues! Any thoughts? Thanks for any input!
White Hat / Black Hat SEO | | Tosten0 -
Problems in 301 redirections
Hi guys, I just redirected the following URLs to one landing page (under a new domain): Old URLs http://www.olddomain.com/folder/page/1 http://www.olddomain.com/folder/page/2 http://www.olddomain.com/folder/page/3 http://www.olddomain.com/folder/page/4 http://www.olddomain.com/folder/page/5 http://www.olddomain.com/folder/page/6 New URL http://www.newdomain.com/new-folder/new-page Here's the code in .htaccess that I'm currently using: RedirectMatch 301 /folder/page/(.*) http://www.newdomain.com/new-folder/new-page The redirection rules are working well but the landing pages are showing special parameters like the following: http://www.olddomain.com/folder/page/1 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=1 http://www.olddomain.com/folder/page/2 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=2 http://www.olddomain.com/folder/page/3 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=3 http://www.olddomain.com/folder/page/4 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=4 http://www.olddomain.com/folder/page/5 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=5 http://www.olddomain.com/folder/page/6 TO http://www.newdomain/new-folder/new-page?cmd=divisionsMain&group=2&country=1&category=1&page=6 Here's what my .htaccess file look like: Options +FollowSymLinks
White Hat / Black Hat SEO | | esiow2013
RewriteEngine on #RewriteCond %{HTTP_HOST} ^beta|livescore.olddomain.com [NC]
#RewriteRule ^(.) - [L]
RewriteCond %{HTTP_HOST} !^www.olddomain.com [NC]
RewriteRule ^(.)$ http://www.%{HTTP_HOST}/$1 [R=301,L] #--Landing pages -start
RewriteRule ^apartment-for-rent-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^apartment-for-sale-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^for-rent-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^for-sale-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^apartment-for-rent-in-manila(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^apartment-for-sale-in-manila(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^serviced-apartments-ho-chi-minh-for-rent(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^residential-housing-bangkok(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^homes-for-sale(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^houses-for-sale(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^real-estate-listings(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^house-listings(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^manila-apartments(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^house-for-rent-manila(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^apartment-for-rent-in-saigon(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^apartment-for-rent-in-hcmc(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^house-for-rent-vietnam(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^house-for-rent-in-saigon(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^philippine-real-estate-for-sale(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/houses/philippines/national-capital-region/makati/dasmarinas-village(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/apartments/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/apartments/philippines/national-capital-region/paranaque(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/apartments/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/condominiums/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/condominiums/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/houses/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/houses/philippines/national-capital-region/muntinlupa(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/houses/philippines/national-capital-region/pasig(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/houses/philippines/national-capital-region/quezon-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/office-spaces/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/apartments/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/commercial-spaces/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/office-spaces/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/condominiums/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/condominiums/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/houses/philippines/national-capital-region/muntinlupa(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/houses/philippines/national-capital-region/pasig(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/industrial_warehouses/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/industrial_warehouses/philippines/national-capital-region/mandaluyong(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/land_developments/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/pre-selling_project-sales/philippines/national-capital-region/makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/office-spaces/philippines/national-capital-region/pasig/ortigas(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^rent/office-spaces/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
RewriteRule ^buy/pre-selling_project-sales/philippines/national-capital-region/taguig/fort-bonifacio-global-city(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=seoModule&sort=$2&page=$5 [L]
#--Landing pages -end #--Redirect pages -start
RewriteRule ^apartment-for-rent-philippines$ /rent/apartments/philippines [R=301,L]
RewriteRule ^serviced-apartments-ho-chi-minh-for-rent$ /rent/serviced-apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^rent/apartments/vietnam/ho-chi-minh-city/serviced-apartment-for-rent-in-Ho-Chi-Minh-City$ /rent/serviced-apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^apartment-for-rent-in-saigon$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^rent/apartments/vietnam/ho-chi-minh-city/apartment-for-rent-in-Saigon$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^philippine-real-estate-for-sale$ /residential-properties [R=301,L]
RewriteRule ^house-for-rent-in-saigon$ /rent/houses/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^house-for-rent-vietnam$ /rent/villas/vietnam [R=301,L]
RewriteRule ^condo-for-rent-philippines$ /rent/condominiums/philippines [R=301,L]
RewriteRule ^makati-condominiums$ /buy/condominiums/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^apartment-for-rent-in-hcmc$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^apartment-for-rent-in-saigon$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^house-for-rent-manila$ /rent/houses/philippines/national-capital-region/manila [R=301,L]
RewriteRule ^manila-apartments$ /rent/apartments/philippines/national-capital-region/manila [R=301,L]
RewriteRule ^rent-in-makati$ /rent/apartments/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^house-listings$ /residential-properties [R=301,L]
RewriteRule ^real-estate-listings$ /residential-properties [R=301,L]
RewriteRule ^houses-for-sale$ /residential-properties [R=301,L]
RewriteRule ^homes-for-sale$ /residential-properties [R=301,L]
RewriteRule ^residential-housing-bangkok$ /buy/houses/thailand/central/bangkok [R=301,L]
RewriteRule ^hcmc-apartment-rent$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^serviced-apartments-ho-chi-minh-for-rent$ /rent/serviced-apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^saigon-apartment-rent$ /rent/apartments/vietnam/south/ho-chi-minh-city [R=301,L]
RewriteRule ^apartment-for-sale-in-manila$ /buy/apartments/philippines/national-capital-region/manila [R=301,L]
RewriteRule ^apartment-for-rent-in-manila$ /rent/apartments/philippines/national-capital-region/manila [R=301,L]
RewriteRule ^for-sale-in-makati$ /buy/houses/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^for-rent-in-makati$ /rent/houses/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^apartment-for-sale-in-makati$ /buy/apartments/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^apartment-for-rent-in-makati$ /rent/apartments/philippines/national-capital-region/makati [R=301,L]
RewriteRule ^rent/villas/vietnam/ho-chi-minh-city/house-for-rent-in-saigon$ /rent/houses/vietnam/south/ho-chi-minh-city [R=301,L]
#--Redirect pages -end #--custom landing pages from Ramon -start | Rnel
#--13-Mar-2012
RewriteRule ^rent/(apartments|villas)/vietnam/ho-chi-minh-city/([a-zA-Z-]+)-for-rent-in-([a-zA-Z-]+)((/)([0-9]+))?$ index.php?cmd=divisionsMain&mainDivision=1&country=vietnam&group=1&custom_category=$2&custom_area=$3&custom_city=25443&custom=1&page=$6 [L]
RewriteRule ^rent/vietnam/ho-chi-minh-city/district-1/ho-chi-minh-city-(district-1|real-estate)((/)([0-9]+))?$ index.php?cmd=divisionsMain&mainDivision=1&country=vietnam&group=1&custom_target=$1&custom_city=25443&custom=2&page=$4 [L]
RewriteRule ^rent/apartments/vietnam/ho-chi-minh-city/saigon-pearl-(apartment-for-rent|for-rent)((/)([0-9]+))?$ index.php?cmd=divisionsMain&mainDivision=1&country=vietnam&group=1&custom_target=$1&custom_city=25443&custom=3&page=$6 [L] #-24-April-2012 | Apartment for rent in makati | 08-May-2012 changed to apartment-for-rent-in-makati
#RewriteRule ^rent/apartments/philippines/national-capital-region/makati((/)([0-9]+))?$ /rent/apartments/philippines/national-capital-region/apartment-for-rent-in-makati$1 [R=301]
#RewriteRule ^rent/apartments/philippines/national-capital-region/apartment-for-rent-in-makati((/)([0-9]+))?$ index.php?cmd=divisionsMain&group=1&country=philippines®ion=national-capital-region&city=makati&category=apartments&page=$3 [L]
#RewriteRule ^rent/apartments/philippines/national-capital-region/makati((/)([0-9]+))?$ /apartment-for-rent-in-makati$1 [R=301]
#RewriteRule ^buy/apartments/philippines/national-capital-region/makati((/)([0-9]+))?$ /apartment-for-sale-in-makati$1 [R=301]
#RewriteRule ^rent/apartments/philippines/national-capital-region/apartment-for-rent-in-makati((/)([0-9]+))?$ /apartment-for-rent-in-makati$1 [R=301]
#RewriteRule ^apartment-for-rent-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=divisionsMain&group=1&country=philippines®ion=national-capital-region&city=makati&category=apartments&page=$5&sort=$2 [L]
#RewriteRule ^apartment-for-sale-in-makati(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=divisionsMain&group=2&country=philippines®ion=national-capital-region&city=makati&category=apartments&page=$5&sort=$2 [L] #--03-May-2012 - Manila | 07-May-2012 - Makati | (rent|buy)/
#RewriteRule ^rent/apartment-for-rent-in-manila$ /apartment-for-rent-in-manila [R=301]
#RewriteRule ^(apartment-)?for-(rent|sale)-in-(manila|makati)(/sort-([a-z0-9-]+))?((/)([0-9]+))?$ index.php?cmd=divisionsMain&mainDivision=1&country=philippines&group_name=$2&custom_target=&custom_region=1&custom_city=$3&custom=4&page=$8&sort=$5 [L]
#--custom landing pages from Ramon|Claudio -end November 26 2013 - migration testing from olddomain to newdomain RedirectMatch 301 /folder/page/(.*) http://www.newdomain.com/new-folder/new-page End <files 403.shtml="">order allow,deny
allow from all</files> deny from 173.245.84.49
deny from 92.40.44.99
deny from 92.41.197.133
deny from 41.58.53.131
deny from 41.184.129.141
deny from 112.135.153.58
deny from 41.138.169.191
deny from 41.58.19.87
deny from 199.58.164.113
deny from 41.71.158.188
deny from 81.149.227.17
deny from 95.211.231.222
deny from 41.58.196.39 Do you guys know why the landing pages are showing special parameters though I didn't add anything in the 301 redirection rules?0 -
Redirect n domain to one
What happen when I redirect301 10 domain to one? I have 10 domain with ave Page Authority=45 and Domain Authority 60 and want to increase my new domain by redirect them. is it right or wrong?
White Hat / Black Hat SEO | | vahidafshari450