Okay the .htaccess file is as below:

Code: 
Options +FollowSymlinks

RewriteEngine on

RewriteRule ^xxx/([^/]+)/([^/]+)/$ - [F,L]
RewriteRule ^xxx/([^/]+)/$ - [F,L]
RewriteRule ^xxx(/?)$ - [F,L]

RewriteRule ^([^/.]+)/([^/.]+)/([0-9]+)(/?)$ index.php?xxx=$1&chapter=$2&page=$3 [L]
RewriteRule ^([^/.]+)/([^/.]+)(/?)$ index.php?xxx=$1&chapter=$2 [L]
RewriteRule ^([^/.]+)(/?)$ index.php?xxx=$1 [L]
Now my problem this is working on a root domain. I want to get this working on a subfolder of the main domain also.So anyone please help with the above code.I don't know what modifications are required.
gamelord Reviewed by gamelord on . Help me with this .htaccess file Okay the .htaccess file is as below: Options +FollowSymlinks RewriteEngine on RewriteRule ^xxx/(+)/(+)/$ - RewriteRule ^xxx/(+)/$ - RewriteRule ^xxx(/?)$ - Rating: 5