Code:
RewriteEngine On
RewriteRule (.+)\.go /$1.php
That's way I wanna go, I don't actually want .go files I just want the URL to show that. However when i added this the .go files sent me to the root dir. The .go files are at a URL 'locahost/Dropbox/eg/new/index.go/' but they load the same page as just 'localhost'. Anyone know why it's doing that?
EDIT: It works if I put the .htaccess file in the root folder not the sub dir one

.
However now i have a new question haha.
Code:
RewriteRule (.+)\.login /$1/login.php
I need that rule to ignore the filename and just use the folders, so /sub1/sub2/index.login would actually load /sub1/sub2/login.php. Obviously atm its loading /sub1/sub2/index/login.php. I need it to ignore the filename, is that possible?
EDIT 2: I came up with this "RewriteRule (.+)/(.+)\.login $1/login.php" Is that a good way to do it or could that be better?