Tag Info

Hot answers tagged

4

You can see an example Here http://chicagos.co This website has all the keywords and stuff like that, but it does not appear on google even if you type the domain, check the source code. chicagos.co doesn't appear in the SERPs because you are redirecting it to another domain!? chicagos.co does a 301 redirect to chicagospizza.co chicagospizza.co then ...


2

You can't include php code in text widgets from the Wordpress admin panel by default. You've added far too much code in your question (instead of just including the relevant snippets - use pastbin for full contents of files). But you can add the ability to include php in text widgets by adding the following in your theme's functions.php file. ...


2

I'm going to break your question into two parts: Where can I send test email? Send test email to a disposable email address service. [1] These services automatically create an inbox for any email you send to them. You can then read the messages in the inbox through their web site, without registration and without a password. For example, I can send an ...


2

Lets analyse briefly each of your reasons. CSS rules are completely loaded with the original page, no additional requests. Kind of true, they are on the rendering engine waiting for the start of the HTML rendering engine/process, which may take longer because the styles are inline so the HTML takes longer to arrive. Depending on size of the page, it ...


2

RewriteRule ^.*$ index.php?page=$1 [NC,L] This will result in a rewrite loop. You are also not capturing the sub pattern, so $1 will be empty. In order to prevent a rewrite loop, you need a get-out-clause, such as not rewriting when the request is already for index.php. Something like: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php RewriteRule ...


2

If you have ever tried to access gmail, facebook, ... with two different browsers in a same computer you see that you can and if you sign out of one the other one is still signed in meanwhile you have the same IP Address(network layer of TCP/IP) on both browsers(application layer of TCP/IP).


2

You need to change your Redirect (mod_alias) to RewriteRule (mod_rewrite). Something like: RewriteRule ^word1/word2/word3 /word1/word2 [R=301,L] (Put back example/ if you wish, but it looked like a typo to me?) The problem you are experiencing is that mod_rewrite (nearly) always executes before mod_alias, regardless of the order of directives in your ...


2

PHP doesn't work with the file over HTTP but directly on the filesystem, unless you access the file over HTTP using cUrl or file_get_contents('http://.../file.xml'). If you want to prevent the files from being accessed without the user being authenticated first, place the files outside the public directory and serve them from there. /files/ ...


1

Unfortunately, with WordPress you will not be able to know which plugin is consuming resources. You will have to disable the plugins one by one and then try. You can even optimize the database so that it does not consumes much resources. It may be helpful to indicate which hosting plan you have with GoDaddy.


1

Postfix has the feature always_bcc. This parameter specifies an optional address that receives a copy of each message that enters the Postfix system, not including bounces that are generated locally. Here is a link: http://www.postfix.org/postconf.5.html Search for always_bcc. This should offer some clue as to what Postfix is doing and if it is working, ...


1

As closetnoc says, you don't necessarily need to reinvent the wheel. However, there can be some benefits to your own logging if that is the route you want to take (and you have the time). Anyway, to answer some of your queries... Does it [apache_request_headers] work for apache only? Primarily yes. It isn't available on IIS for instance. However, as ...


1

I am not answering your code question directly based upon your comments. I think I understand what you want. I feel that you can be better served if I go in another direction. I hope you don't mind. Why recreate the wheel? Most people use Google Analytics though there is some confusion over the data from time to time. It is free. Two excellent options are ...


1

You can try something like this: <? $deny = array("111.111.111", "222.222.222", "333.333.333"); foreach ($deny as $denyip) { if (strpos($_SERVER['REMOTE_ADDR'], $denyip)===0) { header("location: http://www.google.com/"); exit(); } } ?> This basically loops through all denied IP's and checks if the user's IP starts with the IP written in ...


1

Use 301 redirects and drop the file extensions. I can point you to some authoritative articles that will help you make your decision on how to approach redirects, URIs and SEO in general. 1) 301 redirects is considered the 'best-practice.' You can read the MOZ (widely considered and authority on SEO) article for more details. 2) As for best-practices on ...


1

Google doesn't index or not index a site based on how the site is generated. There is nothing wrong with the code on your site, Google just hasn't found it yet. There are somethings you can do to help - Sign up for Google Analytics and add the tracking code to your site. You should do this anyway as the information is critical to the success of the site ...


1

The "general" rule of thumb which I see and understand it to be... The main, global style is a external stylesheet that is linked to the whole site. While the individual "page fixes" such as small margin, paddings, and minor issues are within a tag to fix them. When it comes to doing this in web design and web development, I was taught this way by my ...


1

You are forgetting one critical issue. CSS files can be cached. This means that there would be a significant drop in bandwidth usage using an external CSS file vs in the header. However, I do understand automation since that is the world where I live. Still, I do not insert style into the header ever except for tools that I create. It may be that static ...


1

Several of my web applications and web hosting provider uses Advanced PHP Cache, also known as APC, instead of Memcache. From my experiences of using both, APC has improved performance more. I would make sure to ask your web hosting provider if they are/can use APC.



Only top voted, non community-wiki answers of a minimum length are eligible