A couple years ago, a programmer set up my site to create descriptive URLs (such as www.mydomain.com/about-whales) with no extension (such as no .html). For these URLs, content is then drawn from my database using the following lines in my htaccess file: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^\.]+)$ index.php?FixedTitle=$1 Code (markup): Using this code, for instance, a user might type in http://www.mydomain.com/about-whales but the content that is 'served up' would be from a database whose 'FixedTitle' field contains 'about-whales' I now have about 250 pages that are indexed and accessible in this way. The problem is that, for a variety of reasons, I now want to replace these pages with stationary, non-dynamic versions, preferably using the same extension-free addresses. I can't do this all at once, because I first have to upload an 'extension-free' stationary version of each particular page. Is there some line I can place before the above code so that the htaccess file will no longer try to automatically redirect users to a dynamic version of the pages for which I have, in fact, uploaded a stationary version? Or, to put the question another way... Suppose I have saved a stationary file to my server with the following name: http://www.mydomain.com/about-whales What line can I add to the htaccess file above so that -- in this particular case only -- the htaccess file does not use the rewrite instructions to create this page by itself using database information? Thanks for the help. I've tried to make the problem as clear as possible, but let me know if you have questions about what I'm trying to do. Brian
This would probably work. you'll have to save your pages with .html extensions for the web server to serve them and have this instead of what you have now. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^/?([a-zA-Z0-9]+)$ $1.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ([^\.]+)$ index.php?FixedTitle=$1 Code (markup):