301 Redirect ASP code
-
Hi
I have a script detailed below, that 301 redirects based upon different queries ---
""""
<%if (Request("offset") = "") Then%> <% if Request("keywords") = "" AND Request("s") <> "" AND Request("j") <> "" then'Sector and Location NOT NULL%> <% if (Request.ServerVariables("HTTP_X_REQUEST_URI")) <> "/" & LCase(SEOFriend(replaces.Fields.Item("JBCategoryLabel"))) & "-jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation"))) Then Response.Status="301 Moved Permanently" Response.AddHeader "Location", "/" & LCase(SEOFriend(replaces.Fields.Item("JBCategoryLabel"))) & "-jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation"))) Response.End End If %> <%End if%> <% if Request("keywords") = "" AND Request("s") <> "" AND Request("j") = "" then'Sector NOT NULL and Location NULL %> <% if (Request.ServerVariables("HTTP_X_REQUEST_URI")) <> "/" & LCase(SEOFriend(replaces.Fields.Item("JBCategoryLabel"))) & "-jobs-in-" & LCase(SEOFriend(SiteDetails.Fields.Item("JBSRegion"))) Then Response.Status="301 Moved Permanently" Response.AddHeader "Location", "/" & LCase(SEOFriend(replaces.Fields.Item("JBCategoryLabel"))) & "-jobs-in-" & LCase(SEOFriend(SiteDetails.Fields.Item("JBSRegion"))) Response.End End If %> <%End if%> <% if Request("keywords") = "" AND Request("s") = "" AND Request("j") <> "" then'Sector NULL and Location NOT NULL %> <% if (Request.ServerVariables("HTTP_X_REQUEST_URI")) <> "/jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation"))) Then Response.Status="301 Moved Permanently" Response.AddHeader "Location", "/jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation"))) Response.End End If %> <%End if%> <%End if%>""""
But this still allows for both the www and non www versions of these pages to render in the browser, which is resulting in duplicate content.
On my home page I use --
<% If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 Then Response.Status="301 Moved Permanently" Response.AddHeader "Location","http://www." & Request.ServerVariables("HTTP_HOST") & "/" Response.End End if %>
`Is there a good way to combine these, so that I still get all of the rules of the first script whilst also redirecting any non www versions to the www version?
in other words
domain.com/jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation")))
Eould redirect to
www.domain.com/jobs-in-" & LCase(SEOFriend(replacej.Fields.Item("JBLocation")))Thanks in advance`
-
Thank you
-
I don't know if I understood coorrectely, but I think the follow:
Redirect example.com to www.example.com RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Redirect especific page redirect 301 /old.html http://www.example.com/new.html
I holpe this is what you are looking for...
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
-
Changing Links to Spans with Robots.txt Blocked Redirects using Linkify/jQuery
Hi, I was recently penalized most likely because Google started following javascript links to bad neighborhoods that were not no-followed. The first thing I did was remove the Linkify plugin from my site so that all those links would disappear, but now I think I have a solution that works with Linkify without creating crawlable links. I did the following: I blocked access to the Linkify scripts using robots.txt so that Google won't execute the scripts that create the links. This has worked for me in the past with banner ads linking to other sites of mine. At least it appears to work because those sites did not get links from pages running those banners in search console. I created a /redirect/ directory that redirects all offsite URLs. I put a robots.txt block on this directory. I configured the Linkify plugin to parse URLs into span elements instead of a elements and add no follow attributes. They still have an href attribute, but the URLs in the href now point to the redirect directory and the span onclick event redirects the user. I have implemented this solution on another site of mine and I am hoping this will make it impossible for Google to categorize my pages as liking to any neighborhoods good or bad. Most of the content is UGC, so this should discourage link spam while giving users clickable URLs and still letting people post complaints about people that have profiles on adult websites. Here is a page where the solution has been implemented https://cyberbullyingreport.com/bully/predators-watch-owner-scott-breitenstein-of-dayton-ohio-5463.aspx, the Linkify plugin can be found at https://soapbox.github.io/linkifyjs/, and the custom jQuery is as follows: jQuery(document).ready(function ($) { 2 $('p').linkify({ tagName: 'span', attributes: { rel: 'nofollow' }, formatHref: function (href) { href = 'https://cyberbullyingreport.com/redirect/?url=' + href; return href; }, events:{ click: function (e) { var href = $(this).attr('href'); window.location.href = href; } } }); 3 });
White Hat / Black Hat SEO | | STDCarriers0 -
Spam signals from old company site are hurting new company site, but we can't undo the redirect.
My client was forced to change its domain name last year (long story). We were largely able to regain our organic rankings via 301-redirects. Recently, the rankings for the new domain have begun to plummet. Nothing specific took place that could have caused any ranking declines on the new site. However, when we analyze links to the OLD site, we are seeing a lot of link spam being built to that old domain over recent weeks and months. We have no idea where these are coming from but they appear to be negatively impacting our new site. We cannot dismantle the redirects as the old site has hundreds, if not thousands, of quality links pointing to it, and many customers are accustomed to going to that home page. So those redirects need to stay in place. We have already disavowed all the spam we have found on the old Search Console. We are continuing to do so as we find new spam links. But what are we supposed to do about this spam negatively impacting our new site? FYI we have not received any messages in the search console.
White Hat / Black Hat SEO | | FPD_NYC1 -
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 -
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 -
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!
White Hat / Black Hat SEO | | esiow20130 -
Partial Match Penalty Site - Move Portion & Redirect To New Site
So I have a site that currently has a partial match penalty from google, I have been working to get it removed...Bad SEO basically my site was submitted to a bunch of bad blog networks..Hopefully it gets lifted soon as we remove and disavow links. That said I was planning on moving a portion of my site to a new site since its not really the focus of the site anymore however still pays the bills. I have also have been building it more of a network of sites..So If I do that and 301 redirect the pages I moved, will the penalty carry? On the current site I planned on using Rel no follow to any links that I may change in the header/menus etc.. Some of these pages I believe have the penalty while others dont. I really just dont want to screw anything else up more then it is? My biggest fear is that its perceived as a blackhat method or something like that? Any thoughts?
White Hat / Black Hat SEO | | dueces0 -
URL structure: 301 redirect or leave as is?
Hello, My website, www.coloringbookfun.com is very old and authoritative, but the URL structure is terrible. If you check out some of our subcategories such as http://www.coloringbookfun.com/Kung Fu Panda and individual printables such as http://www.coloringbookfun.com/Kung Fu Panda/imagepages/image2.html You can see that they aren't optimized. I am curious to know the pros and cons of fixing the URL structure and 301ing them to the new optimized url. Will 301ing lose authority and backlinks for the sites pages? Does optimizing the url structure outweigh losing the authority/backlinks?
White Hat / Black Hat SEO | | WebServiceConsulting.com0 -
Blogspot or Wordpress.com Redirect?
I have multiple domains with the same registrar. Is there an SEO benefit to create complimentary blogs on blogspot, wordpress.com or other "free" blog sites and forward these domains with the purpose of backlinking to the main site?
White Hat / Black Hat SEO | | reeljerc0