How important is admin-ajax.php?
-
Hi there!
It's been a long time since I last did a technical audit of a site. I've currently playing with the 'fetch as google' tool to find out if we're blocking anything vital.
The site is based on Wordpress, and after a recent hacking incident, a previous SEO moved the login portal from domain.com/wp-admin/ to domain.com/pr3ss/wp-admin/ - to stop people finding it.
Fair enough. But they then updated the robots.txt file to look like this:
User-agent: *
Disallow: /pr3ss/wp-admin/Now, some pages are trying to draw on theme elements like:
http://www.domain.com/pr3ss/wp-admin/admin-ajax.php
http://www.domain.com/pr3ss/wp-content/themes/bestpracticegroup/images/column_wrapper_bg.pngAnd are naturally being blocked (not that this seems to affect the way pages are rendering in Google's eyes)
A good SEO friend of mine has suggested allowing the theme folder, and any sub folders where this becomes an issue.
What are your thoughts? Is it even worth disallowing the /pr3ss/wp-admin/ path?
Cheers guys and gals!
All the best,
John.
I've found a couple of the theme's
-
On a side note, if you don't want hackers to find the wp-admin folder, you may not want to put the folder in the robots.txt file, as this is publicly accessible and it will make it easy to find (although it may not be an issue for automatic attacks).
-
Hello John,
I don't understand how blocking /wp-admin/ would keep /wp-content/ from being accessed and rendered by Google.
Google doesn't need to see anything in the /wp-admin/ folder so you should keep it blocked. They do need to see the /wp-content/ folder though.
-
It is either or really. Its not hard to tell that a site is running wordpress, it is pretty hard to hide. At the same time the admin directory does not have any public facing files for non-logged in users as well. I just use a good Wordpress security plugin, good server practices and leave it at that.
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
-
Backlinks to less important subdomain
We have two subdomains on our site: blogs and *www. Our most important and competitive pages are on the www subdomain. I have some pages on the blogs subdomain that have valuable backlinks. Would it be helpful to our SEO efforts for the www subdomain to move and redirect those pages on the blogs subdomain to the www subdomain?
Intermediate & Advanced SEO | | RCF0 -
Site ranks good for all keywords except the important ones
Hey guys I am the marketing manager for https://www.tadibrothers.com/, i started a year ago when the website was ranked very poorly on most keywords, I got most of our nitch keywords rank well to fist page except the most important ones. backup camera
Intermediate & Advanced SEO | | TadiBrothers
backup camera system
wireless backup camera system
rear view camera Our backlinks campaign is doing well 15 backlinks on average every month.
on-site optimization is also good.
Our Domain authority is better than all our competitors. Can anyone Please help me to understand why they do not rank well? Hope to hear from someone soon1 -
How do I redirect my old PHP website to my new Java website?
Please could you help? My old website is written in php. I've created a new design of the website in Java. I'll be using the same domain name though. example.com and I'd like to pass my link juice to my new redesigned website. When I turn the domain name to point to my new website how do I make sure pages that are ranked in google that don't exist on my new website transfer 301 from my old website to a similar page on my new website. Old Website Example example.com/bootcampuk.php New Website Example example.com/bootcamps.jsp Many Thanks, Rob
Intermediate & Advanced SEO | | puamethod0 -
Which is better /section/ or section/index.php?
I have noticed that Google has started to simply link to /section/ as opposed to /section/index.php and I haven't changed any canonical tags etc. I have looked at my pages moz authority for the two /section/ = 28/100
Intermediate & Advanced SEO | | TimHolmes
/section/index.php = 42/100 How would I go about transferring the authority to /section/ from /section/index.php to hopefully help me in my organic serp positions etc. Any insight would be great 🐵0 -
301 Redirect from ASP.NET to PHP...Is it possible?
Hi all, I'm trying to migrate my current website over to wordpress however my current website is ASP.NET and obviously Wordpress uses PHP. Is it possible to perform a 301 redirect from a asp.net to a php? Or do you need to convert the asp.net language into php? Or something different? I welcome your thoughts? Regards, Thomas Rochford
Intermediate & Advanced SEO | | CoGri0 -
Titel in header.php
I have noticed that in theme file I have 2 header.php. First of all I have no clue why I have 2 of them. I guess that is not correct. Especially I wonder on difference in the title tag. I wonder what the difference it makes on the site. I have always name of the site behind every title, can be this causing this?
Intermediate & Advanced SEO | | Rebeca10 -
GA and Ajax Forms
Hi Mozzers, Gravity Forms for Wordpress provides an unsurpassed user experience. The form submits and the form response replaces it without having to reload or redirect to another page. The problem is that without a redirect there's no way to track this event in Google Analytics. I'm interested in hearing from anyone who tried to track and ajax event in Google Analytics.
Intermediate & Advanced SEO | | waynekolenchuk0 -
Redesign Launch with change from ASP to PHP
My client is launching a new corporate website redesign. But the trick is, their old site was built in ASP and they want the new site to be a Wordpress site, built in PHP. Their current website has A PR4/10 and MANY backlinks to its pages. I don't want to risk any SEO authority and make sure the transition is smooth. The current site only has less than 75 pages. Can anyone give me a checklist of things I need to make sure get done? And how to do each? For example: 1. How to forward the old domain to new URLs... (301s? DNS? HT Access?..not savvy) 2. Keep all the same URLs? 3. Don't change any content?...etc. 4. Submit new sitemap? or robots.txt file? Also, I wanted to add a Wordpress Blog to the new site for SEO purposes, but since it's being built in Wordpress, do you recommend I have a subdomain on this site as www.blog.website.com? Or is this now not necessary since the entire thing is built in wordpress? I would REALLY appreciate your time helping me on this. Thanks! Derek
Intermediate & Advanced SEO | | DerekM880