I need some HTACCESS help (Magento)
-
Hi Guys,
I need some help on this htaccess issue in Magneto.
So here is what I am trying to do:
I wanted to change mysite.com/index.php/etc to mysite.com/etc
so I turned on the web friend URLS.
That did that, BUT there are still two versions of every page on the site.
www.mysite.com/etc and mysite.com/index.php/etc
So that isn't good for SEO.
So then I applied a 301 matching redirect, RedirectMatch 301 /index.php/(.*) http://www.mysite.com/$1
That solved that problem.
But now I am not able to log into the admin.
It is mysite.com/index.php/pg45admin. It should redirect to mysite.com/pg45admin but the page just hangs.... It goes into a continuous loop.
I tired using the custom URL and then the site crashed and I had to redo it.
So what do I need to do for this to work?
-
Oh my goodness Dave,
I just saw your question and then noticed the date you posted!
Do you still need help with your question, or have you resolved the problem? (I really hope so)
If not, let us know.
Sha
-
Yes, that is what I am looking for.
-
In that case you need the couple lines of htaccess code to redirect any index.php page to it's equivalent. I am not a regex/htaccess pro and do not know the code for it off-hand.
-
Hi Ryan,
Thanks for the response, but I had already turned on web friendly URLs. All that did was removed the index.php from the URL. Both URL's stlll exist.
Before web friendly URL's it was like this:
mysite.com.index.php/etc/etc
after
Since both URL's exist, I just want to 301 redirect any index.php URL to the URL without it.
I have not found any plugin to do what I am looking to do.
-
I have no experience with Magneto, but I have always been able to configure friendly URLs on any system.
If I was in your situation I would do the following:
1. rename your htacess file to .htaccess.old (basically this is the same as deleting it but you would still retain a copy)
2. google "Magento friendly URLs" and follow the guides. I found a few:
http://kb.siteground.com/article/Enable_Friendly_URLs_in_Magento.html
At worst, there are a few plugins which do what you are after
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
-
I need help with redirecting chain to another page and 301, I don't understand on how to fix
Redirect Chain <label>What it is:</label> Your page is redirecting to a page that is redirecting to a page that is redirecting to a page... and so on. Learn more about redirection best practices. <label>Why it's an issue:</label> Every redirect hop loses link equity and offers a poor user experience, which will negatively impact your rankings. <label>How to fix it:</label> Chiaryn says: “Redirect chains are often caused when multiple redirect rules pile up, such as redirecting a 'www' to non-www URL or a non-secure page to a secure/https: page. Look for any recurring chains that could be rewritten as a single rule. Be particularly careful with 301/302 chains in any combination, as the 302 in the mix could disrupt the ability of the 301 to pass link equity.” This is not helping me I don't understand about the 301 do I use the www.jasperartisanjewelry.com or the /jasperartisanjewelry.com I'm confused
Technical SEO | | geanmitch0 -
How do I customize Magento product urls?
I would like my product urls to be /category/manufacturer/name/part#. This would be the only url the item uses and how the product is accessed. It would also be used for product feeds. My first attempt was to use https://amasty.com/magento-unique-product-url.html This creates a single url but I can not customize it. Sometimes it selects the manufacturer and sometimes the category. My second attempt was with https://www.magentocommerce.com/magento-connect/custom-product-urls-seo.html I have it installed but it doesn't change the urls. Has anyone been able to do this successfully?
Technical SEO | | Tylerj0 -
Help! Website has lost all DA since being 301'd
Hi, We have redirected a small WP website to a new site and domain and it has lost all DA and PA. Does anyone know if there's a fix for this? Would reverting back to the old domain help? We redirect www.northcornwallgardens.co.uk to cornishlawns.co.uk Thank you James
Technical SEO | | CamperConnect140 -
Need Help On Proper Steps to Take To De-Index Our Search Results Pages
So, I have finally decided to remove our Search Results pages from Google. This is a big dealio, but our traffic has consistently been declining since 2012 and it's the only thing I can think of. So, the reason they got indexed is back in 2012, we put linked tags on our product pages, but they linked to our search results pages. So, over time we had hundreds of thousands of search results pages indexed. By tag pages I mean: Keywords: Kittens, Doggies, Monkeys, Dog-Monkeys, Kitten-Doggies Each of these would be linked to our search results pages, i.e. http://oursite.com/Search.html?text=Kitten-Doggies So, I really think these pages being indexed are causing much of our traffic problems as there are many more Search Pages indexed than actual product pages. So, my question is... Should I go ahead and remove the links/tags on the product pages first? OR... If I remove those, will Google then not be able to re-crawl all of the search results pages that it has indexed? Or, if those links are gone will it notice that they are gone, and therefore remove the search results pages they were previously pointing to? So, Should I remove the links/tags from the product page (or at least decrease them down to the top 8 or so) as well as add the no-follow no-index to all the Search Results pages at the same time? OR, should I first no-index, no-follow ALL the search results pages and leave those tags on the product pages there to give Google a chance to go back and follow those tags to all of the Search Results pages so that it can get to all of those Search Results pages in order to noindex,. no follow them? Otherwise will Google not be able find these pages? Can someone comment on what might be the best, safest, or fastest route? Thanks so much for any help you might offer me!! Craig So, I wanted to see if you have a suggestion on the best way to handle it? Should I remove the links/tags from the product page (or at least decrease them down to the top 8 or so) as well as add the no-follow no-index to all the Search Results pages at the same time? OR, should I first no-index, no-follow ALL the search results pages and leave those tags on the product pages there to give Google a chance to go back and follow those tags to all of the Search Results pages so that it can get to all of those Search Results pages in order to noindex,. no follow them? Otherwise will Google not be able find these pages? Can you tell me which would be the best, fastest and safest routes?
Technical SEO | | TheCraig0 -
Help Understanding GWT Message
Brief background: A few months ago, our firm exchanged blog posts with another law firm in Pennsylvania with followed links. Though we did exchange links, the posts weren't spammy. They wrote "A Floridian's Guide To A Car Accident In Pennyslvania" and we wrote one for Pennsylvanians in Florida. (The reason for this is that Personal Injury law varies drastically from state-to-state, and Florida has a ton of people who move back and forth). My question: His firm got a message from google saying our link to him violated googles' guidelines. I went and removed the link, BUT I didn't get any message saying his link to our site was a violation. Shouldn't we both have gotten messages? Perhaps, mine is "in the mail" so to speak, but I would think both would go out at the same time, so I'm wondering if there is another possible reason? Thanks, Ruben
Technical SEO | | KempRugeLawGroup0 -
I need an SEO Specialist to take a look at a few things for me
I need to hire an SEO specialist technician to take a look at a few things under the hood that I can't seem to figure out... is this the right place to ask for this type of paid help?
Technical SEO | | co.mc0 -
HTTP 500 Internal Server Error, Need help
Hi, For a few days know google crawlers have been getting 500 errors from our dedicated server whenever they try to crawl the site. Using the "Fetch as Google" tool under health in webmaster tools, I get "Unreachable page" every time I fetch the homepage. Here is exactly what the google crawler is getting: <code>HTTP/1.1 500 Internal Server Error Date: Fri, 21 Jun 2013 19:52:27 GMT Server: Apache/2.2.15 (CentOS) X-Powered-By: PHP/5.3.3 X-Pingback: [http://www.communityadvocate.com/xmlrpc.php](http://www.communityadvocate.com/xmlrpc.php) Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> My url is [http://www.communityadvocate.com](http://www.communityadvocate.com/)</code> and here's the screenshot from Goolge webmater http://screencast.com/t/FoWvqRRtmoEQ How can i fix that? Thank you
Technical SEO | | Vmezoz0 -
Help! Need advice for a new HTTPS URL!
Hi. We have just launched a new website that is fully secure with the HTTPS url. You can still access the home page with an ordinary HTTP address. That is what we want to change. Should we forward the HTTP url to the HTTPS? Redirect? It is the same URL for both. http://www.parrotmoon.com Thank you for all ideas! Jay
Technical SEO | | theideapeople0