something messy with .htaccess while using php include

I am currently working on a web application where i want to give user access to their profile by typing this is working fine with .htaccess but i also want the user to access other pages with clean urls by redirecting to

i used the rewrite rule like this

RewriteRule ^(.*)$ ./song-type-one.php?song=$1 
RewriteRule ^lok-songs/(.*)$ .song-type-one.php?song=$1  

if i type the clean url now in the browser only my main content is loaded the css, javascript and my php include are not loaded. there might be something wrong with my .htaccess whats the best way to achieve all rules i want with .htaccess ?


Try adding this before it:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

If the file exists on disk it won't do your rewrite rule allowing the JS and images to be loaded normally.

Need Your Help

MsBuild copy file after build

.net visual-studio-2010 build msbuild csproj

I want to copy xml file from main directory to bin\Debug after building the project, but my solution doesn't work. I edited .csproj file and addded:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.