Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

for ex. i want change index.php to index.abc

is it possible with mod rewrite?

share|improve this question

migrated from stackoverflow.com Jun 29 '11 at 22:40

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

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.