¹ØÓÚphp urlÖØд
Ïë°Ñhttp://www.abc.com/aa/bb/aa.php ÖØд³Éhttp://www.abc.com/aa.php ŪÁË°ëÌìÒ²²»ÖªµÀÈçºÎŪ¡«¡« Õâ¸ö¿ÉÒÔʵÏÖô
RewriteRule ^([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\.php$ $3.php [L,QSA]ÒýÓà RewriteRule ^([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\.php$ $3.php [L,QSA] Õâ¸öÔõôÍùhtaccessÕâ¸öÎļþÖÐд£¬ÎÒÊǸö²ËÄñ£¬²»ÖªµÀÔõôŪ ÎÒµÄÒâ˼ÊÇ°Ñ ÍøÕ¾ÖÐaa/bbÎļþ¼ÐϵĶ«Î÷È«²¿ÖØдµ½Ö÷Ŀ¼Ï£¬Ð»Ð» ÓüÇʱ¾´ò¿ª htaccess °ÑÕâ¸ö RewriteRule ^([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\.php$ $3.php [L,QSA] ¼Ó½øÈ¥¾Í¿ÉÒÔÁË¡£´ó¸ÅÊÇÔÚ ¼Óµ¹ÊýµÚ¶þÐаÉÒýÓà ÓüÇʱ¾´ò¿ª htaccess °ÑÕâ¸ö RewriteRule ^([a-z0-9]+)\/([a-z0-9]+)\/([a-z0-9]+)\.php$ $3.php [L,QSA] ¼Ó½øÈ¥¾Í¿ÉÒÔÁË¡£´ó¸ÅÊÇÔÚ ¼Óµ¹ÊýµÚ¶þÐÐ°É ÎÒûÓÐÏֳɵÄhtaccess ±ØÐëн¨£¬¾ÍÕâÒ»¾ä¾ÍÐÐô ÄãÊ×ÏÈҪʹÄãµÄ·þÎñÆ÷Ö§³Örewrite ½«Æä·Åµ½httpd.conf»òÕß.htacess¶¼¿É,µ«ÉÏÒ»¾äÊÇÇ°Ìá. ÓÃnotepad+´ò¿ªhttp.conf rewrite ѧϰ mark
Ïà¹ØÎÊ´ð£º
ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel ×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬ ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏ ²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿ ÔËÐÐÁË/ext_skel --extname=Ä ......
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£ ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
ÏÖÓÐÒ»¸ö avi ¸ñʽµÄÊÓƵ£¬ ÏëÔÚÒ»¸öÒ³ÃæÖмÓÒ»¸öÉÏ´«ÊÓƵµÄ¹¦ÄÜ£¬°ÑÕâ¸öaviµÄÎļþÉÏ´«ÉÏÈ¥£¬²¢¿ÉÔÚÍøÒ³Öеã»÷²éÊÓƵ£¬ÕâÔõôʵÏÖѽ£¬ ×Ô¼ºÈ¥ÕÒÒ»¸öÆÕͨµÄÉÏ´«´úÂë¾Í¿ÉÒÔÁË¡£ ÖÁÓڲ鿴ÊÓƵ£¬ÄãÖ¸µÄÊÇÔÚÏß ......
<?php /* ¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ ¾ßÌåÓ÷¨: ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html mod_rewrite(); $yearn= $_GET["year"];//½á¹ûΪ'2006'
......
PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ ¹úÇì ÖÐÇï¿ìÀÖ Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿ ¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ Ïë·¨²»´í ¹ÛÀñ̨Χ¹Û¡£ Χ¹Û ½¨ÒéÄã²Î¿¼°×¶¾ Ê׳¤ºÃ£¡ Èö·Ö° ......