Hazukiy Posted April 4, 2013 Share Posted April 4, 2013 Hi, I was wondering, how would I make it so that when people access my site, the extension of that file is hidden in the URL? Thanks? Quote Link to comment Share on other sites More sharing options...
Psycho Posted April 4, 2013 Share Posted April 4, 2013 Modrewrite Quote Link to comment Share on other sites More sharing options...
requinix Posted April 4, 2013 Share Posted April 4, 2013 If you don't mind being able to hide all extensions (you don't have to) and you use Apache then you can put Options +MultiViewsin your .htaccess. Quote Link to comment Share on other sites More sharing options...
Hazukiy Posted April 4, 2013 Author Share Posted April 4, 2013 I have this in the .htaccess file. I'm not sure this is correct. Quote Link to comment Share on other sites More sharing options...
requinix Posted April 4, 2013 Share Posted April 4, 2013 Because...? You do have to fix your links to not include the extension - that doesn't happen for free. Quote Link to comment Share on other sites More sharing options...
Hazukiy Posted April 4, 2013 Author Share Posted April 4, 2013 Because...? You do have to fix your links to not include the extension - that doesn't happen for free. Wait no It didn't appear, I put a quote under it Quote Link to comment Share on other sites More sharing options...
requinix Posted April 5, 2013 Share Posted April 5, 2013 ...What? Quote Link to comment Share on other sites More sharing options...
Hazukiy Posted April 5, 2013 Author Share Posted April 5, 2013 ...What? Aha sorry, mind fart. What I meant to say was that I have this in the htaccess file and it doesn't work: # Do not remove this line, otherwise mod_rewrite rules will stop working RewriteBase / Options +MultiViews Quote Link to comment Share on other sites More sharing options...
requinix Posted April 5, 2013 Share Posted April 5, 2013 So you've got, say, /index.php and you have your links pointing to "/index" and it's not working? What do you know about your server setup? Quote Link to comment Share on other sites More sharing options...
Hazukiy Posted April 5, 2013 Author Share Posted April 5, 2013 So you've got, say, /index.php and you have your links pointing to "/index" and it's not working? What do you know about your server setup? Oh do I need to take the .php out of my links? Quote Link to comment Share on other sites More sharing options...
Solution Jessica Posted April 5, 2013 Solution Share Posted April 5, 2013 Yes. Quote Link to comment Share on other sites More sharing options...
Hazukiy Posted April 5, 2013 Author Share Posted April 5, 2013 Yes. Ah ok thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.