Take the 2-minute tour ×
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 index.abc

is it possible with mod rewrite?

share|improve this question
add comment

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

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

1 Answer

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
add comment

Your Answer

 
discard

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