Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

i want to mod rewrite change extension of any page to what i want.

for ex. i want change index.php to

is it possible with mod rewrite?

share|improve this question

migrated from Jun 29 '11 at 22:40

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 4 down vote accepted
RewriteEngine On
RewriteRule ^(.*)\.abc$ $1.php

that should change all of your pages from .PHP to .ABC

share|improve this answer
very thanks. you saved my day – ShirazITCo Jun 29 '11 at 22:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.