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 -
Absolute urls
I am redesigning my website with an updated theme.
Link Building | | patmatt
One of the theme plugins takes my url: https://example-site.com/1st-level-page/2nd-level-page/page-content and changes it to https%3A%2F%2Fexample-site.com%21st-level-page%22nd-level-page/page-content%2F Does this effect how a web crawler see's my internal links?
Can this have a negative effect on my SEO?
Should I edit the plugin to force it to render the url exactly as written?0 -
Impact of distribution of backlinks across multiple pages
Community, I would be interested to see if anyone has been seeing any experiments, experience documentation, or other data that would give context around the impact of pointing backlinks not just to your money page / home page but distribute it across pages. When doing competitive research I often run into competition which has lower domain strength and page rank but a link profile that is more spread out across their domain; these competitors often outrank my site despite their individual page properties being weaker. Any reference to existing documented experiments, personal experience or guidance is welcome.
Link Building | | italiansoc0 -
Question on getting new site with poor URLs indexed
For the website www.misslovegirls.com , with URLs like http://www.misslovegirls.com/goods.php?id=3706 is there any chance of getting these URL's indexed? Thanks!
Link Building | | onlinemktg10 -
Multiple Listings in Larger City with Multiple Addresses?
My client's small biz is going after a highly competitive keyword phrase for a medium sized city. Question. Currently has 3 biz addresses. The oldest is farthest away from Geographic location we are now targeting. 1)Would I be best served to change all listings to newest address Or 2nd most common address and 2nd closest to geo-area Go with farthest but most established address which has been address listed on website for the past year. Domain name has been owned for a couple of years. When I look in getlisted.org oldest and farthest address most established has 55% completed, 2nd farthest is 23% and of course newest and latest but in-town is 0%. Thanks for ideas!
Link Building | | greenhornet770 -
Using brand domain for easy verbally said with 301 redirect to exact match.net for a site
I have recently bought an exact match.net for a keyword with no hyphens (on the fence about hyphens, read so many different views on here). From looking around it seems that not all solicited links that I am interested in use anchor text, but more significantly exact match domain would be like automatic anchor text when anyone from the general population posts a link to your site. I sell print books and am thinking of keeping the non-keyword domain in them so they are easy to say and type, while using the exact match domain for everything else online which the non-keyword domain would 301 redirect to. I don't do any programming and will use cPanel on my webhost to do the 301 redirect, I already have one 301 to go to the www subdomain so that would make two 301's. This might sound quite straight forward to many here but it's fairly new to me and I've not seen cPanel mentioned here yet, so was wondering if I am going about it the right way.
Link Building | | Zoolander0 -
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 this redirect pass any juice?
Does this link pass link juice: http://www.finda.co.nz/redirect.php?listing_id=r2vp&url=http://www.avantifinance.co.nz
Link Building | | conradh1