ReWrite Pages
Posted: Tue Aug 11, 2009 4:59 am
Hello Guys,
I have trouble with url re-writing,
I am new to php, for SEO purpose i want to change few of my site's pages from .php to .htm/.html
i want to change below four pages from .php to .htm
index.php, contact.php, aboutus.php, career.php
can you please help me to re-write above pages.
i have tried using below re-write script, but failed
RewriteEngine on
RewriteRule ^(.*)\.htm$ aboutus.php [NC]
RewriteRule ^(.*)\.htm$ index.php [NC]
RewriteRule ^(.*)\.htm$ contact.php [NC]
RewriteRule ^(.*)\.htm$ career.php [NC]
Also if you could suggest me some good books/links for rewrite rules
I have trouble with url re-writing,
I am new to php, for SEO purpose i want to change few of my site's pages from .php to .htm/.html
i want to change below four pages from .php to .htm
index.php, contact.php, aboutus.php, career.php
can you please help me to re-write above pages.
i have tried using below re-write script, but failed
RewriteEngine on
RewriteRule ^(.*)\.htm$ aboutus.php [NC]
RewriteRule ^(.*)\.htm$ index.php [NC]
RewriteRule ^(.*)\.htm$ contact.php [NC]
RewriteRule ^(.*)\.htm$ career.php [NC]
Also if you could suggest me some good books/links for rewrite rules