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
-
Fitness- china.com 301 Redirects
After I switched to 301, will the backlinks obtained by the previous domain name be transferred to the new URL? our Weight Machine new URL https://www.fitness-china.com/weight-machine
Link Building | | ahislop5740 -
Multiple guest posts from one site have any effect on rankings?
I have started guest blogging and have sites asking me for more content. I understand that regular guest blogging is great for building authority as an author and has the potential to get more links through word of mouth and other sites linking to me. The more posts I do the more exposure I get. But if I have say 3 or 4 posts on an external site with each linking to my site (to a different url and with different anchor text) does that have any effect on rankings as all links come from the same domain? As I understand it links from different root domains are what matters. Presumably a site with links from 5 different sites with 10 links on each external domain totalling 50 links wouldn't rank as well as a site with links from 50 different domains (1 per domain)?
Link Building | | SamCUK0 -
Buying Branded URL's
Hello A competitor of mine has a bunch of branded terms that they purchased, with backlinks point to their main site, is there a specific reason they do this? If I analyze the links on the "branded url" theres it has very little juice/authority? Is it worth it to do this? ex www.siteCOUPON.com. or www.mainsite.biz I have a .ca and something similar to our site re-directing through register.com in Iframe. But would they just be using those terms because it has high search volume? Would this help me in anyway? Thank you!
Link Building | | TP_Marketing0 -
Do I get any link juice from a PHP header redirect from another site?
For example would: www.site-A.com/click-tracking.php?site=www.site-B.com contain any link juice? Would a 301 redirect be the simple solution?
Link Building | | David_Viciedo0 -
Multiple link building strategy for multiple clients
We deal with about 200 clients for a series of websites. We create a number of articles articles per site per month. A company we used to do link building for the websites it turns out were doing a lot of spinning which has been hard hit by the new penguin update. I'm actually really happy about it as it means we can now do some legitimate SEO on their sites. Any ideas of what the best strategy would be for this amount of sites which we are already creating shareable content for?
Link Building | | acs1110 -
URL shortener and backlinks
Are there any SEO benefits drawn from creating backlinks with Google url shortener service(especially for the very deep links) or for the do-follow link juice I have to use a complete address?
Link Building | | SirMax0 -
SEO Tool to search mass URLs (for link qualification)
Hi, I have been using OSE and have a compiled list of backlinks to my competitor's sites. The next step would be to go through and qualify all of these links for a link opportunities for my client's site. To save me a lot of time, I require a tool that will search all of these pages (say 1000) for specific keywords in tags or body content. A search query might be - site:(URL list) intitle:directory site:(URL list) "add site" etc Any ideas would be great. Thanks.
Link Building | | DigitalLeaf0