How to rewrite URL with .htaccess

hoangvu

New member
Joined
Jun 6, 2012
Messages
1,834
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,390
Replies
4
Views
6,265
Newer threads
Replies
13
Views
9,008
Replies
2
Views
3,013
Replies
1
Views
3,013
Latest threads
Replies
1
Views
122
Replies
0
Views
246
Replies
3
Views
513
Replies
3
Views
372
Replies
3
Views
96
Recommended threads
Replies
7
Views
4,608
Replies
24
Views
10,191
Replies
11
Views
6,447
Replies
17
Views
9,648
Replies
5
Views
3,625
Similar threads
Replies
2
Views
3,073
Replies
3
Views
9,407

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