waytech2003
Programmer
Let me start by saying I know next to nothing about servers and htaccess.
I am trying to combine two major site changes by using htaccess.
This is so all old bookmarks and Search engine links don't break.
First off all the htm and html files have been changed to php.
Secondly the website was " and now is "That is the /NTrak/ subdirectory is gone and everything is moved up one level.
So " becomes "I have tried the following and it remove the "NTrak" but does not change htm$ to php
If I use either one by itself they do what I want them to do, but they don't work in combination.
What am I dong wrong.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^NTrak/(.*)$ /$1 [R=301,NC]
RewriteRule ^(.+)\.htm$ $1.php [R=301,NC]
I am trying to combine two major site changes by using htaccess.
This is so all old bookmarks and Search engine links don't break.
First off all the htm and html files have been changed to php.
Secondly the website was " and now is "That is the /NTrak/ subdirectory is gone and everything is moved up one level.
So " becomes "I have tried the following and it remove the "NTrak" but does not change htm$ to php
If I use either one by itself they do what I want them to do, but they don't work in combination.
What am I dong wrong.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^NTrak/(.*)$ /$1 [R=301,NC]
RewriteRule ^(.+)\.htm$ $1.php [R=301,NC]