How to rewrite URL with .htaccess

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,838
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
2,105
Replies
4
Views
5,731
Newer threads
Replies
13
Views
8,126
Replies
2
Views
2,645
Replies
1
Views
2,694
Latest threads
Replies
1
Views
64
Replies
1
Views
337
Replies
4
Views
715
Replies
0
Views
142
Recommended threads
Replies
1
Views
2,427
Replies
15
Views
9,229
Replies
5
Views
2,636
Replies
9
Views
4,149
Replies
3
Views
1,750
Similar threads
Replies
2
Views
2,751
Replies
3
Views
8,801

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

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