Forum Moderators: coopster
Good luck!
PS: welcome to Webmasterworld!
If all of the pages are going to be php pages and you're using Apache, why not just leave the .html extension in place and set up Apache to parse .html pages as .php [google.com]?
-B
1) Do not name your PHP files ".php". Keep the names and add this line to your .htaccess file.
AddType application/x-httpd-php .html
This causes all html files to be fed to PHP.
If this doesn't work for you, a mod_alias or mod_rewrite might be offer a solution.
2) mod_alias:
RedirectMatch 301 ^/(.*)\.html$ [yourdomain.com...]
This redirects the user's browser (and GoogleBot) to the php-page when they request the html page. To avoid unnecessary redirection change all internal links to point to the php-files. Redirection is overhead so the AddType solution might be better.
3) mod_rewrite:
RewriteEngine On
RewriteBase /
RewriteRule ^/(.*)\.html$ /$1.php
Make sure you read the acording Apache docs so you understand what the above directives do. I didn't test them. They should only give you an idea.
I think you misspoke. In any case...
ASP is a scripting language and has nothing to do with URL rewriting.
mod_rewrite works with the Apache server. If you're running Apache under Windows, mod_rewrite works exactly as it does under *nix as near as I can tell, regardless of whether you're using ASP or something else. If you're using IIS, you need something else. Search on
IIS url rewriting (no quotes)
and you'll get lots of stuff.
thanks.