renfley Posted June 18, 2013 Share Posted June 18, 2013 Hey guys i need to change the url field. This is what i currently have, site.com/?page=home and site.com/?admin=home Here is the .htaccess RewriteEngine On #Look for the word "wiki" followed by a slash, and then the article title RewriteRule ^?admin=home /admin/home dunno if im on the write track but ive never done url rewrites. i would like to see site.com/page/home Quote Link to comment https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/ Share on other sites More sharing options...
requinix Posted June 18, 2013 Share Posted June 18, 2013 Rewrite from /page/home to /?page=home. RewriteRule ^/page/home ?page=home [L]If that doesn't work then try without the first slash: ^page/home. Do you have more pages that go from /page/abc to ?page=abc? If so you should make a generic pattern for all of them... Quote Link to comment https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/#findComment-1436683 Share on other sites More sharing options...
renfley Posted June 18, 2013 Author Share Posted June 18, 2013 yea i have quite a few that call on admin and page, Also others i will need to automate it but that's on me, Gotta learn by figuring out the basics first... I will test and let you know how it goes, Thanks Quote Link to comment https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/#findComment-1436684 Share on other sites More sharing options...
renfley Posted June 19, 2013 Author Share Posted June 19, 2013 Ok so it gives me a internal 500 error and ive tried a few different methods still no luck My Test site is spaxus.com if you click the home menu button... it go to http://spaxus.com/?page=home I would like it to show http://spaxus.com/page/home/ So can anyone help me out? Quote Link to comment https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/#findComment-1436765 Share on other sites More sharing options...
renfley Posted June 19, 2013 Author Share Posted June 19, 2013 i should also mention hosting is with 1and1 Quote Link to comment https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/#findComment-1436768 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.