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
-
If I get multiple links from one domain, will that help my rankings?
Hello, I have developed a relationship with a blogger in my niche. He has published a guest post of mine with a link back to my site. Does it make sense to keep providing him with content to build different links from different pages within the same root domain? Thanks! Ricardo
Link Building | | myriad_ricardo0 -
Backlinks to an anchor name URL: How Google sees them
I have been searching for the answer to this question and to my surprise have yet to find anything on the web. This is my situation: I have a form at the bottom of one of my pages and have another website that wants to link to this page, more specifically this form. I have an anchor link on the page to this form already. I was planning on sending the anchor name URL to the Webmaster to link to my page so their users will go straight to my form. My question is: do I lose link juice to my URL from this link because it is an anchor name URL? Does Google see this link that goes to a specific portion of my page to be less valuable than if I just linked to the plain URL? Cheers Sean
Link Building | | Tyler1232 -
Buying keyword urls for local traffic
Hi, I've been told that there is a real benefit in buying up local domain names and setting up mini adverts to your core website... is this actually true? Seems a strange practice. Example: If I had a car cleaning site called 'MozCarCleaning.co.uk' and the company was based in London. Then I'd buy related domains, 'LondonCarCleaning.co.uk' , 'CarValetLondon.co.uk' and make mini websites which then link to the main site. Alternatively, would it be worth just 301 redirecting directly to the core site? Thanks.
Link Building | | MatthewJamesRiley0 -
Targeting City Geo-tags/Keywords for Clients with Multiple Locations
Hey everyone! What methods are best to use for SEO campaigns working with 1 website for a company which has 2, 3, 4, or more locations in order to get keywords for their services to rank well... in all their location cities? I feel we know the answer could be any one of the below notes, however, it's always nice to learn more about what all you other SEO's are doing or have done which saw success. Please note: We have heard about building microsites on sub-domains example city.domainname.com/keyword-or-service
Link Building | | WhiteboardCreations
We have heard about building sections off the root domain such as domainname.com/city/keyword-or-service
We have heard about just pushing more content to the blog which can target a wider range of keywords and cities
We have heard about building a new site for each city location replicating the main website and swapping out content for 100% originality
We have heard about just building more and more backlinks with different anchor text using the cities in the anchor text Thanks in advance and look forward to hearing from some other experts facing these same challenges!1 -
Should I contact webmasters to remove URL's to my site from domains with a low DA?
Should I be contacting webmasters to remove URL's from domains with a low DA - to remove low quality links? Thanks, -Mike
Link Building | | naturalsociety0 -
Best SEO Friendly URL
Hi. Currently I'm using the following url: mysite.com/this-is-the-news-title/news-1234 The news title followed by the directory and the news id. Same goes to mysite.com/my-name/user-123 I think its better for SEO since the relevant words (news title and name) are to the left of the link. But some people are saying that this is not good for SEO because crawlers can't "organize" the urls in directories. So they say its better to use: mysite.com/news/this-is-the-news-title/1234 mysite.com/user/my-name/123 Cause then the crawler know what is a news and what is a user. What do you guys think? Thanks.
Link Building | | rapchan0 -
Is the frontpage/deeplinking ratio of backlinks an important ranking factor?
Hi, i am asking me since a while, if the relation of the amount of frontpage backlinks divided through the amount of deeplinks pointing to a domain is an important ranking factor? In this area, i am not so much looking in the total numbers of backlinks, but more at the number of linking root domains. Do you have explore the ratio of frontpage/deeplinking as ranking factor reqarding the 100% of external backlinks? So for example, what do you consider better, asuming all root linking domains in theory are equal, for the SERP of the main keyword for which the frontpage is running on Google. Case A Frontpage = 80 Linking Domains
Link Building | | Braumueller
Subpages = 20 Linking Domains 80 / 20 = 4 / 1 (4 times more frontpage linking domains than deep linking domains to subpages) Case B Frontpage = 90 Linking Domains
Subpages = 10 Linking Domains 90 / 10 = 9 / 1 (9 times more frontpage linking domains than deep linking domains to subpages) Case C Frontpage = 95 Linking Domains
Subpages = 5 Linking Domains 95 / 5 = 19 / 1 (19 times more frontpage linking domains than deep linking domains to subpages) Greetings from Hamburg,
http://www.suchmaschinen-experte.de0 -
Is publishing content on multiple platforms like Tumblr, Blogger, Posterous, etc. a legit way to build backlinks?
My client has a fishing report that is published weekly on his blog. Would it be wise to syndicate that content on these other services with backlinks baked into each one? Any thoughts?
Link Building | | AaronParrish1