Hi Folks,

In my drupal website, i have want to do some URL rewrite stuff for external php pages. For ex. consider the URL : www.mydrupalsite.com/artistPage.php?title=ricky+martin. I want to rewrite this URL as www.mydrupalsite.com/title/ricky+martin.

In this case, i want to use Drupal's default .htaccess file to put the regular expressions. I had referred so many other site, but ended-up with no luck.

Below is the setting, i have put in place of .htaccess file. If i use below .htaccess file setting, URL "www.mydrupalsite.com/title/ricky+martin" works fine. But, i am losing UI(CSS, JS etc).


RewriteEngine on

RewriteRule ^artist/(.*)$ artistPage.php?artist=$1 [L]
# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

If someone can assist with me on this, it would be of great help.

Looking forward to hear from you.

Thanks,
Warm Regards,
Saravanan