How to rewrite URL with .htaccess

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,889
Points
0
Hi everyone,

All day I search for on the internet on how to use mod rewrite.
I would like to use it locally with EasyPHP but after that I create. htaccess file and put this.

RewriteEngine on
RewriteRule ^ index.html $ index.php

to transform index.php in html. url in php but always comes out.

I tried to do so.
Index.php RewriteRule ^ $ index.html and says The requested URL was not found on this server

What should I do?
 
Older threads
Replies
0
Views
1,543
Replies
4
Views
4,841
Newer threads
Replies
13
Views
7,102
Replies
2
Views
2,049
Replies
1
Views
2,129
Latest threads
Replies
0
Views
30
Replies
1
Views
104
Replies
1
Views
66
Recommended threads
Replies
0
Views
1,612
Replies
1
Views
1,414
Replies
2
Views
720
Similar threads
Replies
2
Views
2,108
Replies
3
Views
5,673

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Latest Blog ArticlesMost Viewed Threads

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top