Best .htaccess guides in your bookmark?
-
It would be helpful if you can share .htaccess guides you're currently using.
Thanks in advance!
-
HI,
This one is pretty good: http://www.noupe.com/php/htaccess-techniques.html
And the boilerplate htaccess file often gives a good starting point (and its commented): https://github.com/h5bp/html5-boilerplate/blob/master/.htaccess
For redirects Lesley is right, they can get complicated and often need a bit of fiddling to avoid server 500 errors.
-
I just want to ask if you guys have articles like the following which you're using as a guide/cheat sheet:
http://www.webconfs.com/how-to-redirect-a-webpage.php
http://www.askapache.com/htaccess/ultimate-htaccess-file-sample.html
Thanks,
JC
-
I generally write them by hand unless an application generates them. They can be quite complex and a lot only work on certain configurations. What exactly are you looking to do?
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
-
Best practice to redirect all 404s?
Hey is it best practice to redirect all 404 pages. For example if the 404 pages had 0 traffic and no links why would you need to redirect that page? Isn't it best practice just to leave as a 404? Cheers.
Intermediate & Advanced SEO | | kayl870 -
Best use of Canonical Tag with Mini-Websites
Hello, I was wondering what the best way would be to implement Canonical Tags in kind of a unusual situation. The company I work for creates single property websites for real estate agents. We register a URL such as 123MainSt.com - however through DNS we redirect that to a path. For example: http://www.944milmadadr.com would redirect to: https://www.qwikvid.com/realestate/go/v1/home/?idx=wDg1Gdwt7wnQiR3LMeCx28qPnWTKM0JV If we wanted to rank high in the search engines for our clients: "944 Milmada Dr" - Would it be the best practice to Canonical: http://www.944milmadadr.com ? Thanks in advance for any feedback on this!! Jason
Intermediate & Advanced SEO | | Qwikvid0 -
Whats the best way to structure my site?
Hi All, Hope everyone is well. I have a hypothetical and would love some experts advice. For a product like a corporate credit card what's the best URL structure to get the most out of SEO. Assuming the Page Title is Corporate Credit Card (unless this isnt the best idea? However the product is called the "corporate credit card" ). The reason this is trickier than I thought is because they say the rule of thumb is to use the plural of everything for best SEO. However I have pluralized the sub page "credit cards". www.website.com.au/products/credit-cards/corporate 2) www.website.com.au/products/credit-cards/corporate-credit-card 3) www.website.com.au/products/credit-cards/corporate-credit-cards If someone were to search for corporate credit cards would option 1&2 show up correctly? Would moz rank this as an "F" ? Thanks everyone! Dave
Intermediate & Advanced SEO | | CFCU0 -
Best server-side sitemap generators
I've been looking into sitemap generators recently and have got a good knowledge of what creating a sitemap for a small website of below 500 URLs involves. I have successfully generated a sitemap for a very small site, but I’m trying to work out the best way of crawling a large site with millions of URLs. I’ve decided that the best way to crawl such a large number of URLs is to use a server side sitemap, but this is an area that doesn’t seem to be covered in detail on SEO blogs / forums. Could anyone recommend a good server side sitemap generator? What do you think of the automated offerings from Google and Bing? I’ve found a list of server side sitemap generators from Google, but I can’t see any way to choose between them. I realise that a lot will depend on the type of technologies we use server side, but I'm afraid that I don't know them at this time.
Intermediate & Advanced SEO | | RG_SEO0 -
What's the best way to redirect categories & paginated pages on a blog?
I'm currently re-doing my blog and have a few categories that I'm getting rid of for housecleaning purposes and crawl efficiency. Each of these categories has many pages (some have hundreds). The new blog will also not have new relevant categories to redirect them to (1 or 2 may work). So what is the best place to properly redirect these pages to? And how do I handle the paginated URLs? The only logical place I can think of would be to redirect them to the homepage of the blog, but since there are so many pages, I don't know if that's the best idea. Does anybody have any thoughts?
Intermediate & Advanced SEO | | kking41200 -
Best way to get pages indexed fast?
Any suggestion on best ways to get new sites pages indexed? Was thinking getting high pr inbound links on fiverr but always a little risky right? Thanks for your opinions.
Intermediate & Advanced SEO | | mweidner27820 -
Any good recent guidelines on how to best configure Yoast SEO plugin?
Any good recent guidelines on how to best configure Yoast SEO plugin? I have it installed however there are a lot of settings that I am unsure of.
Intermediate & Advanced SEO | | webestate0 -
How to best migrate / rebrand our organisation without losing the SEO on our current website?
I searched the current questions and found similar questions but nothing as specific as what I wanted, so... We are a graphic design school in Melbourne Australia. We have a website - www.graphicschool.com.au - that ranks fairly well in Google for our particular search terms. We have rebranded the organisation and want to change the website domain name to the new branding - www.grenadi.vic.edu.au - but obviously do not want to lose our hard earned SEO and rankings. We only have two strategies so far, and are not sure what the pros and cons to either strategy are, or whether there is a better way. The two ideas we have are: Option 1) Just swap the domain name. We were thinking about swapping the domain name and setting up 301 redirects to tell Google that the old page that ranked well is now this page 'x' on the new site. I've read that you lose all your valuable links doing this because they are domain specific and the 301 doesn't forward your links. Option 2) Build a second website. This idea is that we would build a second website with our new domain name and branding and build up that site until it ranks as highly as the first site and then start to remove the first site. We're planning on completely redeveloping the current website anyway and changing and adding lots more content as well so this option is not out of the question. Any help, thoughts, suggestions or further options would be greatly appreciated. Feel free to discuss. Can I also please suggest that a new category is added under 'The SEO Process' - something like 'rebranding / migration' Cheers, Anthony
Intermediate & Advanced SEO | | Grenadi0