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
-
SEO value of 301 redirects from non-existent sites.
I have a question about an SEO tactic. There is this site that has purchased three domain names, and has redirected them to their main site. The three domains are: Spokaneduilawyer org, Spokaneduilaw com, and Spokaneduilawfirm com and the website has all three domains redirecting to their main site. What is the SEO value with this? I looked at those three domains on Majestic and they have no backlinks that I could find, and when I looked on archive.org I didn't see any history of those domains being actual sites that might bring traffic. What is the webmaster trying to do, and what is this tactic called?
Link Building | | RandyHT0 -
How do I link specific keywords to a specific URL on my landing page? i.e.-Cloud Computing
Example keyword Cloud Computing California. How do I link this keyword on SeoMoz to a specific URL on my landing page?
Link Building | | SteelsmithGroup970 -
Backllinks to our site but via redirect (still SEO helpful?)
Hi, A large website may link to us but via their internal redirect mechanism. So it would be somthing like this: [If you select the link, it eventually goes to our site but not from the original page. These links would be placed on lots of pages, but since they would all "pass through" the "redirect" page, it seems not as beneficial from an SEO perspective. Is this reasoning correct? Would google still follow the link and see where it ends up, even though it is via multiple pages? Ideally I'd prefer direct link but how much better is it than the redirect as listed above?](/redirect/rd?site=www.oursite.com/page&trackingparam=111111)
Link Building | | NicB10 -
How best to link multiple related websites.
I have a handful of e-commerce websites that overlap each other some in the same niche. I have already heard that it would have been best to make just one website, but this is not practical for me. Our business model goes back to a time before the internet. We have relationships with manufacturers where they refer business to us because we brand web sites which will not switch customers to competing brands. Our agreements make it ok to link to other websites so long as we have branded websites that focus on the specific manufacturers. For SEO, what is the best way to link these sites? Site wide links in footers.? Single links at on homepages? One way links from the most powerful site? Some other method? We have been wrestling with this question for some time.
Link Building | | EugeneF0 -
Does the url text count as anchor text in google's algo?
I always try to strive for getting good anchortext in links that people link to my sites with, but sometimes they are not very web savvy, or just plain not willing to format the link the way i want it and we end up with links that use the URL as the anchortext. My question is, if i format a url such that it has keywords in it, and when someone makes a link like this: http://www.storwell.com/self-storage-toronto-bursary-application-form.php does google consider the words: storwell, self, storage, toronto, bursary, application & form as the anchor text?
Link Building | | adriandg0 -
Urls rewriting "how to" with .htaccess
hi, Please i would need advices (links, tips, tool:generator ?) regarding url rewriting through .htaccess (newbee about it). It's a "refurbishing" website case , the domain doesn't change. But the CMS does ! I've got a list of urls (800) with which i don't want to loose rankings on : Here the type of old url syntax : http://www.mydomain.com/home/newscontent.asp?id=1133 Here the new url type would be: http://www.mydomain.com/name-of-the-article
Link Building | | mozllo
or/and
http://www.mydomain.com/category/Page-2 Tks a lot...0 -
Index.php OR .php - Which is better for urls
I was wondering. When I build links should I build them using "index.php" OR ".php" at the end? Does one have any more value than the other from an SEO standpoint Example: www.mywebsite.com\hotdogs\index.php or www.mywebsite.com\hotdogs.php
Link Building | | openspan0 -
Submitting Same Press Release to Multiple Sources
I've never considered this as a good practice, but is there any benefit to submitting a press release to one PR source, then going to other PR sources and submitting the same content? My main goal, currently on one project, is the soul purpose of link building and backlinking. I see this as duplicate content, although I am seeing competitors submitting the same press release multiple times trying to reap some sort of benefit from it. In my honest opinion, I would rather submit 1 different press release each week throughout the course of a month to a quality site like PRLog or PRweb. Comments? Opinions? I would really like to hear them.
Link Building | | TKIGWebTeam1