0

Possible Duplicate:
using seo user friendly in php

I have 3 PHP files: index1.php, index2.php and index3.php

Lets assume I want to have the following SEO paths:

/seo-path1/

/seo-path2/

/seo-path3/

How I could configure the .htaccess file so when a request comes from these sub folder, it redirects to their respective PHP file?

/seo-path1/ ---> goes to index1.php

/seo-path2/ ---> goes to index2.php

/seo-path3/ ---> goes to index3.php

Thanks in advance. Greets. Jose.

Community
  • 1
  • 1
Jose3d
  • 9,149
  • 6
  • 33
  • 54

1 Answers1

4

This should be what you're looking for:

RewriteEngine On
RewriteRule ^seo-path1/$ /index1.php
RewriteRule ^seo-path2/$ /index2.php
RewriteRule ^seo-path3/$ /index3.php
Ricardo
  • 492
  • 4
  • 15