x24324gv89
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 0
Hello,
I am new here and completely new to php coding and .htaccess.I readed on net that if you use mod_rewrite func you can redirect any file to another for ex (index.php redirect to index2.php)
So,i wanted to try it but it does not redirect to index2.php from index.php
.htaccess file
Note:All 3 files (.htaccess,index.php,index2.php are in a same folder called gd...
Thanks!
I am new here and completely new to php coding and .htaccess.I readed on net that if you use mod_rewrite func you can redirect any file to another for ex (index.php redirect to index2.php)
So,i wanted to try it but it does not redirect to index2.php from index.php
.htaccess file
Code:
RewriteBase /
RewriteRule ^index.php$ index2.php [L,NC]
Thanks!