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
-
301 passing authority?
Does anyone have experience of 301's in connection with SEO or more specifically passing authority? Recently purchased a small business that had three small websites. My main concern is all three websites do rank for some fairly important key phrases, but there is very little direct overlap. I was hoping by using 301's I would be able to refocus the authority to get the main site ranking.
Link Building | | seoman100 -
301 redirect backlink
Hello, My website is brand new! I am planning to do have some 301 redirect backlinks. Is it safe in terms of SEO ? Do i have any SEO benefits? let me know. Thanks
Link Building | | EchoMartinez1 -
Does google will see this has a 301 permanent redirect and will penalized my website?
Hi, I got a website that have a lot of information on job posting. The domain name will be new but i just want to redirect all of the old single job pages (around 300 pages). To the new domain pages but keep the old domain because it's already been indexed by google. The design will change but the content will kinda be the same. Is this a good approach? Does google will see this has a 301 permanent redirect and will penalized my website? Thanks alot
Link Building | | bigrat950 -
How to build links for a domain name that is redirected to another url?
I'm helping a friend build links to his site because he recently moved across country. His primary domain isn't very SEO friendly (shef1.com) so he registered another domain (stephenshefrinphotography.com). Shef1.com has been around for awhile and has at least been crawled with a page rank of 1 so we decided to keep shef1.com as the main website and redirect stephenshefrinphotography.com to it. So for SEO sake I know it's best to at least have a keyword in your URL so I have been using the url stephenshefrinphotography.com in my link building efforts for local directories and blog comments. Is this the right way to go about this or should I be using the main url shef1.com? He had virtually no backlinks until I started helping him but the ones I have created over the last month are not showing up on the link analysis in my campaigns. I just want to make sure my efforts aren't in vain. Advice please. Thanks!
Link Building | | mrsmelmitch0 -
Article submission to multiple directories
We know the general consensus among the crowd here is to avoid free article submission directories. But we have to do this as part of our overall deliverables and have hit a roadblock. A couple of our agencies are insisting that we submit one article to multiple sites - which we contend would trigger duplicate content issue and render all links useless. Any feedback on submitting one article to multiple article sites?
Link Building | | eBrandz0 -
SEO in multiple languages
I'm doing SEO for an apartment rental web-site. We have one web-site for each destination. And for some (popular) destinations we have a separate domain for some languages. For instance: http://www.barcelonacheckin.com/en for English and http://www.barcelonacheckin.com/fr for French In another destination we have http://costabrava-ok-apartment.com/en for English and http://www.location-costabrava.fr/ for French. We have good result with the separate domains for languages. But I'm facing two problems: We do not get any progress in the ranks in English in any Web-site There's a lot written about SEO in English and there are many opportunities to build relevant links. But we are out of sources for eg. French. Our SEO routine exists of participating in forums on famous travel web-sites, guest post exchange with our blogs, link exchange and presence in Social media. Can anybody give us some suggestions?
Link Building | | jereprieto0 -
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 -
Marketing URLs - best practices
Hi, We do have a consistent url structure like http://www.company.com/productname-london
Link Building | | ecnic
http://www.company.com/productname-auckland
etc. Now marketing wants to include each URL in our yearly printed catalogue.
Out of marketing reasons (I agree with that), they think the URLs are too long and should be for example: http://www.company/london
http://www.company/auckland
etc. Our brochure is very important for direct customers and we have a target group that actively uses the internet and social media and therefore will pick up these links. Even if we do correct redirects in the background - couldn't we have the problem
that we have a double set of urls? What do you think about that?0