Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚ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ʱµÄÎÊÌâ

ÎÒÓÃPHPÀ©Õ¹Cʱ£¬ÓõÄÊÇÔ´ÂëextĿ¼ÏµÄ./ext_skel
×îºó±àÒë×ÜÊDz»ÄÜÉú³ÉÀ©Õ¹Ä£¿éµÄ.so¶¯Ì¬¿â£¬ÎÒÓõİ汾ÊÇ5.3.0£¬
ÕâÊÇÔõô»ØÊ£¬¸ßÊÖ½â´ðÏÂ

²»ÄÜÉú³ÉʱÓÐɶÌáʾÐÅÏ¢£¿

ÔËÐÐÁË/ext_skel --extname=Ä ......

php±àдִÐÐlinux shellÃüÁîµÄ´úÂë

ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾­¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......

php ÉÏ´«ÊÓƵµÄÎÊÌ⣬ÔÚÏßµÈ

ÏÖÓÐÒ»¸ö avi ¸ñʽµÄÊÓƵ£¬
ÏëÔÚÒ»¸öÒ³ÃæÖмÓÒ»¸öÉÏ´«ÊÓƵµÄ¹¦ÄÜ£¬°ÑÕâ¸öaviµÄÎļþÉÏ´«ÉÏÈ¥£¬²¢¿ÉÔÚÍøÒ³Öеã»÷²éÊÓƵ£¬ÕâÔõôʵÏÖѽ£¬
×Ô¼ºÈ¥ÕÒÒ»¸öÆÕͨµÄÉÏ´«´úÂë¾Í¿ÉÒÔÁË¡£

ÖÁÓڲ鿴ÊÓƵ£¬ÄãÖ¸µÄÊÇÔÚÏß ......

¹ØÓÚphpα¾²Ì¬µÄÎÊÌâ

<?php
/*
¹¦ÄÜ£ºPHPα¾²Ì¬»¯Ò³ÃæµÄʵÏÖ
¾ßÌåÓ÷¨:
ÀýÈçÁ´½ÓΪ:test.php/year/2006/action/_add.html
mod_rewrite();
 $yearn= $_GET["year"];//½á¹ûΪ'2006' ......

PHPÔıø

PHPÔıø,°ÑÄãÃÇPHPµÄ¿ªÔ´ÏîÄ¿·¢ÉÏÀ´¿´¿´,ÒÔ¹©ÔªÊ×¼ìÔÄ
¹úÇì ÖÐÇï¿ìÀÖ

Â¥Ö÷£¬¿ªÔ´ÏîÄ¿²¿´ú±íÃâ·ÑÏîÄ¿

¿ÉÒÔ×Ô¼ºÕÒÂð£¬ÍøÉ϶àµÄÊÇ

Ïë·¨²»´í

¹ÛÀñ̨Χ¹Û¡£

Χ¹Û

½¨ÒéÄã²Î¿¼°×¶¾

Ê׳¤ºÃ£¡

Èö·Ö° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ