.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
-
Seeking SEO contractor
I would like to hire an SEO contractor to assist with some technical/SEO issues on our site (Schema, etc). Can anyone make a recommendation? I am looking to work with a small company. Thank you in advance for any referrals!
On-Page Optimization | | JulieALS0 -
Seeking Advice on Improving On-Page SEO for my Website
I'm looking for some expert advice on improving the on-page SEO for my website, CCTV Camera Installation. Despite following best practices, I feel that my site isn't performing as well as it could be in search engine rankings. Here are a few specific areas where I'd appreciate some guidance: Content Optimization: I've ensured my content is keyword-rich and valuable to my audience. Are there any advanced techniques or tools that can help further optimize my content? Meta Tags and Descriptions: I've written unique meta titles and descriptions for each page, but I'm unsure if they're as effective as they could be. What are some tips for crafting compelling meta tags that improve click-through rates? Internal Linking: I've set up a basic internal linking structure. How can I enhance this to better distribute link equity and improve user navigation? Page Load Speed: While my site's load speed is decent, I'm aware that even minor improvements can have a significant impact on SEO. Are there any specific optimizations or tools you recommend for speeding up my website? Technical SEO: I've covered the basics like XML sitemaps and robots.txt files. Are there any advanced technical SEO practices that I should be aware of? Here is the link to my website for your reference: https://www.acssllc.ae/ Thank you in advance for your help! Best regards,
On-Page Optimization | | Htdbf
Israr Khan0 -
Is This a Misuse of Structured Data (JSON Recipe Tag on Collection Pages)?
I've noticed that many food blogs use the "recipe" tag to rank collection pages in carousels. For example, for the search term "Zucchini Recipe," Gaumenfreundin is in the first position in the carousel with a page that contains multiple recipes. This makes sense if the user intent is plural (e.g., "recipes") - but in the singular? According to Google's guidelines, the recipe tag is intended for individual recipes. Google even states that it is a misuse if only the ingredients are listed without the steps. So, isn't it against the guidelines to tag a collection page (even additionally) with the recipe tag? This practice is already common in the US market. Is Google aware of this and possibly tolerating it because it sometimes makes sense to present multiple recipes to the user? For example, "Zucchini Recipe" - the user might not yet know exactly what they want to cook with zucchini. Or do you think Google will take action against this practice in the future?
On-Page Optimization | | chueneke0 -
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 -
Targeting Home page is better for local seo
Hey guys i need know whether targeting homepage for local SEO is good or creating separate page for locatin
On-Page Optimization | | moz12pro0 -
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 -
Is there a way to measure a competitors content growth?
Bonjour from 23 Degrees C hot & sultry Wetherby UK, I find again and again clients find jumping into an active volcano easier than addid fresh content. I want to try another tactic to prompt / scare them into adding content and here is my idea. I want to track a competitor site for a target term and monitor if they are adding content over time specific to that term. So my question is please: "Is there a reliable method to do this?" Ideas i had was doing a good old Google Title operator at the beginning of the month and then at monthly intervals to see if anything changes. Any insights welcome 🙂
On-Page Optimization | | Nightwing0