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?
RewriteRule (.+)\.go /$1.php
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.
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?
RewriteRule (.+)\.login /$1/login.php
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?