.htacces measure
-
Hi, what is a reasonable measure of an .htacces? i have a lot of 301 redirects and wonder when will this turn against me because there are to much 301 redirects?
-
okay i try to keep it under 100 lines and was wondering is this to much.. i know to little from apache rewritemap and looking for a dutch translation of the link you send me. so i can try that.
Thanx again!
-
there is no documented number that is considered as a flag. but i keep my htaccess less than 200 lines
-
Thanx for the answer but what is a reasonable measure of an .htacces? do know that?
-
.htaccess file is evaluated on EVERY server request. So you are talking when it pulls images, CSS, JSS and all elements, the htaccess gets evaluated. ie when you have more than 400 lines in a htaccess file. the server will go through all of them to reply to the request. hence make your site load speed slow.
So you have two options when your htaccess file goes big:
- Make it Smart: you can use rewrite rules and wildcards to minimize 300 lines in a htaccess file to just couple of lines
- move the redirects to be controlled by http.conf on the server level with rewrite map. (reference: http://httpd.apache.org/docs/current/rewrite/rewritemap.html)
hope this helps
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
-
Unsolved Need Wordpress Front-end Plugin With Moz API
Hi Guys,
On-Page Optimization | | mrezair
I'm looking for Moz SEO Front-end Wordpress Plugin To Audit My Visitors Website And Show Results in my site. Like This plugin for Moz DA Checker: https://www.724ws.net/domain-authority-checker/ It's not important to be a free plugin or Premium one. I need to increase leads and traffic by it. Any suggestion will be appreciated.0 -
The particular page cannot be indexed by Google
Hello, Smart People!
On-Page Optimization | | Viktoriia1805
We need help solving the problem with Google indexing.
All pages of our website are crawled and indexed. All pages, including those mentioned, meet Google requirements and can be indexed. However, only this page is still not indexed.
Robots.txt is not blocking it.
We do not have a tag "nofollow"
We have it in the sitemap file.
We have internal links for this page from indexed pages.
We requested indexing many times, and it is still grey.
The page was established one year ago.
We are open to any suggestions or guidance you may have. What else can we do to expedite the indexing process?1 -
On-page SEO
This is a question for the organic SEO experts, once you added the main keyword that you want to rank for in the homepage title, meta title plus meta description, perhaps once or twice in the text on the homepage. How often do you then write it in the content marketing, say blog posts, we want to rank higher on Google for "SEO agencies Cardiff" however if you mention this in the blog posts too much say once a week, this could lead to over optimisation issues?
On-Page Optimization | | sarahwalsh1 -
Missing H1 headings
Hi,
On-Page Optimization | | Colin12
I have an enquiry in relation to missing H1 headings. I am getting a number of these errors reported for collection pages where I am using a full width banner image at the top of the page with no visible description underneath. In these circumstances is it advisable to somehow include a H1 heading or can I ignore it? https://osullivanspharmacy.ie/collections/deep-heat0 -
Schema LocalBusiness for multiple store locations
Hello, I want to add LocalBusiness mark up to our store pages. I recently read this article https://moz.com/blog/structured-data-for-seo-2 One piece of advice I wanted to confirm is this section: It might seem counter-intuitive, but organization and LocalBusiness markup should only be used on the pages which are actually about your business (e.g. homepage, about page, and/or contact page). I am working on an e-commerce site that has multiple stores and a store page for each. Currently there is Organization Mark Up (with the head office contact information) on every single page. Am I right in saying that we should remove the Organization Mark Up from every page except the homepage, then add LocalBusiness mark up to each store page with the relevant contact information for each store? Many thanks in advance.
On-Page Optimization | | kbm30 -
Brand name in title?
Hi all, I have noticed that a lot of companies put there brand/company name at the end of their page title. To me, that seems like a huge sacrifice of your limited 60 characters. Wouldn't it be better to use characters for words that people might actually be searching for?
On-Page Optimization | | RaoulWB0 -
Downsides on shortening article title?
Hi there, I'm new to Moz: great tool so far! I just tried the page optimization feature and see that (for instance for this article) page titles are often too long. Now it's tempting to just shorten the title straight away, but I have a memory of someone once telling me changing the title will change the URL. And changing the URL is something not appreciated by Google. Could someone please explain if and why this is/isn't the case? And if there are any downsides/things to consider before changing the article's title? Thank you in advance!
On-Page Optimization | | RaoulWB1 -
How to measure form abandonment
Buon Pormeriggio from Yorkshires answer to Silicon Valley Wetherby UK 😉 Ok on this page http://www.onesys.co.uk/ half way down guests are invited to download pdfs but via jquery application window as illustrated here -
On-Page Optimization | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/form-abondonment_zps604b6c13.jpg What i'd like to do is measure abandonment rates as in how many users cant be arsed to fill out the application form. Whilst I have done funnels before theyve been wired into actual pages using Goal funnels in analytics but this scenario of a kind of splash jQuery page appearing has got me stumped, ive no idead how to measure frequeny of click aways (if you see what i mean).
Any ideas welcome 🙂 Thanks,
David0