php中的子域名漂亮网址

i created sub domain for my application (http://articles.myloanguroo.com/inside.php/?short=1). Now i want to create a pretty URL for this like (http://articles.myloanguroo.com/inside/1)

MY .htaccess file

RewriteEngine On 

RewriteCond %{SCRIPT_FILENAME} !-d  
RewriteCond %{SCRIPT_FILENAME} !-f 
RewriteRule ^(\w+)$ inside.php?short=$1
RewriteCond %{HTTP_HOST} !^www\.myloanguroo\.com$ [NC]
RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.myloanguroo\.com$ [NC]

This is not working for me. Showing 404 Error. Help me how to create subdomain pretty URL's in PHP

You regex should start with ^inside/ and keep conditions before RewriteRule:

Options -MultiViews
RewriteEngine On 

RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.myloanguroo\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} -d  
RewriteRule ^inside/(\w+)/?$ inside.php?short=$1 [L,QSA]