Tag Info

Hot answers tagged

2

You can't check for the query string using the RewriteRule pattern (the query string is stripped before pattern matching, as is the hostname, etc). So, the rules you stated above simply won't match and you'll get a 404. However, you can use the RewriteCond directive to check the query string: For example: domain.tld/en/abc.php?foo to ...


1

Perfectly fine to 301 redirect all HTTP pages to their HTTPS equivalent. Either via httpd.conf on Apache servers, .htaccess rewrites or with a PHP include like your example. Any inbound links would pass about 97% of weight through a 301 redirect. The best handling internally would be to not use the protocol for internal linkage so that compatibility is ...


1

Make sure that short tags are disabled in your production environment as <? is used by PHP and XML and will conflict when you use the two together. WAMP has short tags disabled by default but most web hosts do not to ensure greater compatibility with older PHP scripts. Since the odds are you won't be able to change the php.ini file of your host you can ...


1

Very likely an automated script hitting your site and trigger analytics to fire. PHP can be a valid user agent, at least according to http://www.useragentstring.com/pages/useragentstring.php I would drill down in to the PHP analytics and then view the location of those visitors, time on site, page views and more to try and determine if it's a script or ...


1

It actually makes sense to increase the limit directly in php.ini, since the processes that don't consume the currently allocated 64MB you have now, won't go over this limit anyway. The only drawback in doing this is that if you have more processes consuming large amounts of memory, they will slow down your system and the server can launch fewer processes ...


1

Yes, it's better to have a lower memory limit and raise it for one script than to have a higher limit overall. The only better way to tackle the issue would be to reduce the memory requirements of the 512MB script if that's possible.



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