In my site Open Source Design House I have used the following codes at .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule index/file/(.*)/ index.php?file=$1 But it still shows like http://www.osdh.biz/index.php?file=about Please help me to rewrite my url. Thanks
Well, it seems that you misunderstood the concept of mod_rewrite It will not change the links that you have in your pages, it will accept the new links and redirect to the specified link in the background. Let me explain. If you want to rewrite example.com/index.php?section=title to example.com/title, you write the necesarry 'code' in the .htaccess, AND, besides that, you change your links in your HTML from index.php?blah-blah to example.com/blah-blah, and the mod_rewrite will make sure that everything will work fine. P.S. I got a hang of mod_rewrite after a couple of months of trying stuff here and there...
Philopoemen , Thanks for info. Now it is working. I need to write http://www.osdh.biz/index/file/about/ in my address bar and will open my about.php file But when i use http://www.osdh.biz/index/file/about/ then my site's design is breakdown. So, I need to change all of my links in my scripts?
Yes, you will have to use full path to all your images, css files, and images in the css files. Like osdh.biz/images/image.gif Every "/" is considered as a subdirectory, so it is looking for images there, and can't find them.
yes as said above you have to put in your files instead of main.css add this http://www.osdh.biz/main.css I think This will fix your problem . Regards, Ace.