Redirect 301 multiple url to frontpage
-
I have a lot of /dummy.php/xxx pages that i would like to redirect to the front page.
/dummy.php/100
/dummy.php/101
/dummy.php/102
.....redirect 301 /dummy.php/WILDCARD http://www.domain.com
I can not figure it out?
-
Super Jeff
You saved my day
-
I would test this, and it might work differently according to your server setup, but you could try the RedirectMatch command like this if your site uses mod_alias:
RedirectMatch 301 ^/dummy.php/.*$ http://www.domain.com/
Or with mod_rewrite, this might be the way to go:
RewriteRule ^dummy.php/ http://www.domain.com/ [R=301,L]I hope this helps!
-- Jeff
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
-
Redirects affect on page and domain authority
Hi - excuse me if this is stupid question but I'm rather new to this. Currently the PA for the home page is 16 and the DA 28 and I have some concerns that my efforts are being diluted. When I use OSE on www.sassandgrace.co.uk I get different link results to sassandgrace.co.uk but there is a redirect in place to sassandgrace.co.uk and cannot run a crawl report, for example, on www.sassandgrace.co.uk. The PA and DA are identical for each but the number of links different With a smallish number of links pointing to each but with a redirect in place, am I losing some of the effect or is having the redirect in place giving me all the credit for links to both addresses? Thanks
Link Building | | Sassandgrace0 -
Shortened URLs Passing Link Equity?
Hi everyone, I was going through a competitor's backlinks, and I noticed they had a number of links from ow.ly and bit.ly that according to Open Site Explorer were passing link equity with PA in the 40 and DA in the 90s. How does that happen? And, how can I duplicate that? I thought those services just shortened your URLs for Twitter feeds mostly, and Twitter no-followed everything. Thanks for any assistance you can provide! Ruben
Link Building | | KempRugeLawGroup0 -
301 redirect of PR 6 domain to PR 1 site, Will it improve my site's seo?
I have a pagerank 1 website but i recently purchased one old pagerank 6 domain, if I 301 redirect this pr6 domain to my currrent pr1 site, will it will increase my site's pr and improve seo ?
Link Building | | IndiaFPS0 -
What happens to (external) linkjuice after you redirect a page?
Hope everybody is having a good day:). I was wondering what happens to the external link juice of a page when you redirect it to a new (and improved) url? For instance www.example.com/lowvolumesword/highvolumeword/ 301 --> www.example.com/highvolumeword/ Will the /highvolumeword/ page lose a lot of (external) linkjuice? Is it best to change the external links to the new url manually or leave them as is and let the 301 redirect take care of it? Is it possible to say that no more than x% of your linkjuice will be passed through via a 301? I hope im making sense here and am looking forward to your reaction. Thanks in advance,
Link Building | | PrizeWize
Lawrence0 -
Multiple domains on same IP address, same niche but different locations.
I have a reseller web hosting account. I have more than 30 domains hosted on this account, and I have only one IP address. The websites are exactly similar in terms of niche but different locations, for example plumberlondon.co.uk
Link Building | | TheReachers
plumberleeds.co.uk
plumbermanchester.co.uk I am using almost same link building method. My question is, is it safe enough to be not penalised by Google? Would appreciate your opinions. Thanks0 -
Set a desination url to text that did not have it previously
I have the following question. Is it OK to set a desination url to text that did not have it previously? Can it cause SEO (SERP) issues? For example, I have this sentence: The tool you're using is great, but this template will help you. Say, the "this template" text has been just plain text for like a year. And now I want to add a certain destination url to the "this template" phrase. So, can it cause some SEO issues to me or not?
Link Building | | VinceWicks0 -
Posting "similar" blog posts to multiple blog sites seems "shady", does it work?
I've read a lot of info here in the Q & A tonight and there was a thread that stated it's potentially a good thing to post content on multiple blog platforms such as: blogger.com posterous.com wordpress.com tumblr.com I've also been trying to figure out how to deal with my blog as a subfolder instead of a subdomain. That research in Q & A clearly indicates that Google treats subdomains basically like separate websites and links from my blog to my main website will not be as valuable if i stay the course with my blog on a subdomain short term. Given that, if the 4 blogging tools above all require the use of a subdomain, then how am I actually taking advantage of the seo value of blogger,posterous, tumblr? In my case my domains would be: steripen.blogger.com posterous.tumbler.com steripen.wordpress.com steripen.tumblr.com Just not adding up to being viable given what I read states these would be treated as new websites, not to mention I worry these posts, even slightly differentiated, would be suspect. Who am I truly benefitting by doing this? Users?
Link Building | | Timmmmy0 -
301 Redirect Domains with old links
I came across a nice discovery of about 20 old domain names that each have many root domains and a bit of DA. I want to know the best way to utilize them without any type of penalty. Currently, (as of an hour ago) I am 301 redirecting all of them to the most relative pages on a single domain. Will i get the majority of the link juice from the domains? I'm excited to see what will happen here. Thanks in advance, Daniel
Link Building | | seoninja200