301 redirectmatch
-
I think I'm starting to loss my mind.
I have worked with regex before with very little problems how with my redirects nothing appears to be working. A little guidance is needed!
The Low down
I have a site with Joomla CMS backend.
The site is undergoing and SEO overhaul
I was simple hoping to use a 301 redirect o these old pages that are now a causing 404's
The addresses
/index.php?option=com_content&view=article&id=46&Itemid=53_blank
/shop/product.php?id_product=11
I have tried the following redirects but no avail
RedirectMatch 301 ^/shop/product.php?id_product=11$ http://www.nomitang.com/index.php/en/vm_getaway_w this does not work at all
if I remove the ?.....ending then I can simply redirect the product page but this is not what we need.
Why does RedirectMatch not register anything after the "?"?
I also tried this
RewriteCond %{HTTP_HOST} ?option=com_content&view=article&id=46&Itemid=53_blank [NC]
RewriteRule ^(.*)$ http://www.nomitang.com/ [R=301,L]But this also didn't work.
Please could someone tell me how to redirect these url's and how to deal with the extrension
Thanks
Stefan
-
Hi
I'm actually using 2.5.
I will take a look at the module but for my own piece of mind, I would like to understand how to use Redirectmatch\RewriteRule better.
Thanks
Stefan
-
Hey Stefan,
You didn’t mentioned the version of Joomla you are using at the moment so it’s difficult to come up with the exact solution but why don’t you use URL redirection module
Check this out and this might help! http://www.seoeducation.in/how-to-redirect-url%E2%80%99s-in-joomla-with-sh404sef-module
Thanks!
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
-
Redirect 301 to homepage
Hello there, I have some low quality pages in my site, can I redirect 301 them to my homepage? My website is: https://idanito.com idanito.com
Technical SEO | | dannybaldwin0 -
Is 301 redirect replacing or adding PA on a page ?
Hello Moz community, I am re-structuring information architecture on a website. The homepage targets keyword A
Technical SEO | | Sindicic_Alexis
There is a page /page-on-B/ that targets keyword B
There is also an older page /page-on-kinda-B/ that targets a keyword which is really close to B ( i think they should have been worked on the same page...) I want to re-optimise the homepage on keyword B because i know it is worth the effort. If i re-write the homepage to talk about B and do a 301 redirect of : /page-on-B/
/page-on-kinda-B/ to the homepage is it going to add page authority to the homepage ? is it the right way to proceed ?
Thanks for your support !0 -
301 Redirect keep html files on server?
Hello just one quick question which came up in the discussion here: http://moz.com/community/q/take-a-good-amount-of-existing-landing-pages-offline-because-of-low-traffic-cannibalism-and-thin-content When I do 301 redirects where I put together content from 2 pages, should I keep the page/html which redirects on the server? Or should I delete? Or does it make no difference at all?
Technical SEO | | _Heiko_0 -
301 Redirect
Hello, On the 26.2.13 we changed domain names having followed the guidance of both Matt Cutts Youtube videos and googles own online documentation. We have a 301 redirect in place from our old domain ukmotorhomehirerental.com to our new site leisurerentalsdirect.com on a page to page basis. The site structure has not been altered in anyway. Google has been informed of the change of address. After the change the new domain transition was pretty seamless and ranked in the same postion in the SERPsThe one thing I've not done yet is tell all the webmasters who link to the old site that the address has changed (could this be it?)
Technical SEO | | Badapplemedia0 -
301 permanent re-direct
My site can be accessed either with or without the www. Does this affect my search positions and do error 301-redirect cause any ill effects?
Technical SEO | | fireman0 -
How can you tell if a 301 has been set up correctly?
How can you tell if a 301 has been set up correctly. We had a .co.uk site that has moved over to a .com However the .co.uk we have hasd problems with the old webmaster giving control, but he has said he has implemented a 301 redirect to the new .com site, and if you click on .co.uk it does transfer you to the .com site How can we check that it is a 301 set up and not another sort of redirect?
Technical SEO | | ocelot0 -
301 redirect from root to /index.aspx
I have taken over the SEO for www.domain.net. The way i've inherited the setup is that www.domain.net is 301 redirected to www.domain.net/index.aspx Looking at top pages and linking root domains in Opensiteexplorer I can see that www.domain.net/index.aspx has 1,006 linking root domains www.domain.net has 806 linking root domains. I assume that www.domain.net is passing the value of it's 806 domain links to www.domain.net/index.aspx via the 301 redirect and because of this would expect www.domain.net/index.aspx to be the strongest page on the site and be the url that ranks in the listings for many relevant searches. It appears however that www.domain.net is what is shown in listings and not www.domain.net/index.aspx ?? Can anyone explain why this might be?? If I do a site: search in Google then www.domain.net is indexed and not www.domain.net/index.aspx ??
Technical SEO | | QubaSEO0 -
Hundreds Of 404s Best Dealt Wtih 301-Palooza?
Was looking at a site's webmaster tools where there are a few hundred 404s for a site. God only knows where all those urls came from or what they once were or what. Two questions; How bad is all this for the site's overall ranking? Should I just make sure they go nowhere and 301 them all to the homepage or some other possibly relevant page? Anything bad that could happen with 301ing all this away? Also, the site has no sitemap submitted to Google. Any tips on that? Thanks!
Technical SEO | | 945010