NationGamer Posted January 20, 2011 Posted January 20, 2011 hello i am currently making my own personal game engine for my own game and was wondering is url rewriting a good idea as i wanted to do something like this http://domain.com/files/login.php to http://domain.com/login.php i know how to do all this but just wondering would it be a good idea along with some rewriting that is seo friendly like http://domain.com/index.php?p=medals to http://domain.com/index/medals.php could someone please give me some good advice on this and if it is a good idea thanks Quote
Sim Posted January 20, 2011 Posted January 20, 2011 Not worth the time. URL re-writing is used for mostly for search engine's ;] Since google will not be crawling your member restricted content, there really is no reason to mod-rewrite url's Quote
NationGamer Posted January 20, 2011 Author Posted January 20, 2011 yeah that true but my main pages are not single either they are formatted like http://domain.com/home.php?login http://domain.com/home.php?signup http://domain.com/home.php?contact http://domain.com/home.php?tos so on Quote
Jordan Palmer Posted January 20, 2011 Posted January 20, 2011 Using htaccess.. http://eisabainyo.net/weblog/2007/08/19/removing-file-extension-via-htaccess/ =) Quote
NationGamer Posted January 20, 2011 Author Posted January 20, 2011 yes i know using htaccess stated at the very top im just saying is it a good idea to be using url rewrite please could you read my post first Quote
Jordan Palmer Posted January 20, 2011 Posted January 20, 2011 That post tells you the benefits. Quote
NationGamer Posted January 20, 2011 Author Posted January 20, 2011 lol didnt read that part thanks but only think ive done it now but how do you redirect the old url to the new mod rewrite url as i dont want users using the old links but the new ones is it actually possible as ive tried nearly everything to do it but nothing works Quote
Jordan Palmer Posted January 20, 2011 Posted January 20, 2011 It should automatically redo the URLS.. Quote
NationGamer Posted January 20, 2011 Author Posted January 20, 2011 yeah it has done the urls auto but the links still work like home?login but i want it to redirect auto to the new url home/login.php Quote
a_bertrand Posted January 20, 2011 Posted January 20, 2011 SEO friendly URL are actually not important as search engines now doesn't give a smaller score to dynamic pages than static one. It now purely cosmetic if you want to have your URL different. Now, for your link problem you should edit your pages such that you use the nicer URL that's it. Quote
Lilith Posted January 20, 2011 Posted January 20, 2011 Would something like this deter a player from typing in the URL directly? Or will the htaccess file just redirect them to where they want to go? Quote
a_bertrand Posted January 20, 2011 Posted January 20, 2011 URLs rewrited just look nicer normally... beside that it doesn't offer any real functionality to the user. Quote
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.