When you run wordpress under xamm, Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 334230 bytes) in D:\xampp\htdocs\test.php on line814. Â 1. Open \xampp\apache\bin\php.ini .Do not go to the directory of phpt to find php5.ini . 2…. Read moreIncrease the memory-limit in php
If you only want http://kingphp.com/money directory become http://kingphp.com, use:RewriteRule ^catalog/$ / [L] If you want all directories become http://kingphp.com, use: RewriteEngine On RewriteBase / RewriteRule ^([^/]+)$ /catalog/$1 [L] RewriteRule ^$ /catalog/ [L] Note:If you have other subfolders in there (in… Read moreHow to use htaccess to change site.com/directory/ to site.com/ ?
For examples, when we visit www.google.com, we want it redirect to http://kingphp.com, we can use the following code: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] The code posted above should be used on the old server.
For example, if we want to redirct http://kingphp.com/php/ to http://kingphp.com/wordpress/ We could use mod_rewrite. Put this in your .htaccess file Options +FollowSymLinks RewriteEngine On RewriteRule /php/(\w+).html /wordpress/$1.html [R=301,L]
If a server hosting 2 domains, we can use this .htaccess (on the root) to point the 2 different domains to 2 Directories on the same server: RewriteEngine On RewriteBase / # pointing for the domain domain1.com to folder1 ReWriteCond… Read moreUsing .htaccess pointing domain to specific directory
xampp provides a convenient way to quickly and easily install and setup a web server that works without much configuration. However, permalinks feature wonâ€™t work with the default installation of xampp, even though you can properly customize the permalinks structure… Read moreWordPress Permalinks Does Not Work in xampp Setup
.htaccess code: redirect 302 / http://www.mynewdomain.com you can also redirect access via PHP, using the header() function: // Permanent redirect: header(‘HTTP/1.1 301 Moved Permanently’, true); header(‘Location: http://www.location.com/’); // Temporary redirect (note that sending the ‘Location’ header automatically sends a 302… Read more.htaccess redirect ALL traffic to another domain
To be able to use php code on a page with an extension other than .php, you need a server which supports .htaccess files. To add an extension to be parsed for php, create or edit a file called .htaccess… Read moreHow to insert PHP code into HTML?
Today when I install XAMPP (www.apachefriends.org), an error comes out â€œThe application failed to initialize properly( 0xc0150002).Click on OK to terminate applicationâ€, I search the internet and found the method to resolve the problem, it is very easy, just download… Read moreThe application failed to initialize properly( 0xc0150002).Click on OK to terminate application