0
我目前的網址是一樣的東西:htaccess的URL重寫,去掉查詢字符串和文件擴展名
http://something.somedomain.com/about_us/profile.php?tab1=about_us
我想讓他們短:
http://something.somedomain.com/about_us/profile http://something.somedomain.com/exchange_hosting/feature/outlook_web_access
我的.htaccess
#################################
# Directory Indexes #
#################################
DirectoryIndex index.php
#########################################
# REWRITE RULES #
#########################################
RewriteEngine On
RewriteBase/
Options +FollowSymlinks
<IfModule mod_rewrite.c>
#not a file
RewriteCond %{REQUEST_FILENAME} !-f
#not a dir
RewriteCond %{REQUEST_FILENAME} !-d
#this dosen't work
#RewriteRule ^([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$ /$1.php?tab1=$0&tab2=$1
</IfModule>
# END #