Ray UK Posted September 10, 2015 Share Posted September 10, 2015 (edited) Hi, I have created a custom "Store Details" page using "Preferences/Store Contacts" and storedetails.tpl, controllers etc... The URL I end up with is www.no-match.co.uk/storedetails?storeid=34 The URL I want is www.no-match.co.uk/34 How and where would I accomplish this ? I will eventually end up with www.no-match.co.uk/southport but im going 1 step at a time whilst learning. Thanks Edited September 10, 2015 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
Ray UK Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) I have tried entering RewriteEngine OnRewriteRule ^([^/]*)\.html$ /storedetails?storeid=$1 [L] in the .htaccess, but that didn't do it. Is there a place in the B.O that I can set this up ? Cheers Edited September 10, 2015 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
Ray UK Posted September 10, 2015 Author Share Posted September 10, 2015 (edited) Ok, so now I have managed to get this url www.no-match.co.uk/storedetails?storeid=Southport Im just needing help on converting to a friendly URL now. ie: www.no-match.co.uk/Southport Thanks Edited September 10, 2015 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted September 14, 2015 Share Posted September 14, 2015 Hi, try this back office-->preferences-->seo & urls click add new click the drop down for page then you will see modules that have registered their pages, then possible you can look at those module to see how they work to have friendly Link to comment Share on other sites More sharing options...
Ray UK Posted September 14, 2015 Author Share Posted September 14, 2015 (edited) Hi Patron, I already have an entry there which just puts "storedetails" after our domain. the "?storeid=Southport" is then added. I wish to remove all of the storedetails?storeid=Southport and replace with just Southport The finished url should be www.no-match.co.uk/Southport Looking in the SEO URLs section I cant see any entry that adds any variables to the url. Cheers Edited September 14, 2015 by MerseyRay (see edit history) Link to comment Share on other sites More sharing options...
Ray UK Posted September 14, 2015 Author Share Posted September 14, 2015 Hi Enrique, I created a storedetails.tpl and controller override. Not sure how to put it together as a module. Ill take a look at other controllers and see if I can work it out from them. Cheers Link to comment Share on other sites More sharing options...
Ray UK Posted September 22, 2015 Author Share Posted September 22, 2015 Ok I cant suss this out. I have entered the friendly url via the "Preferences/SEO & URLs" section in the BO That gives me the no-match.co.uk/storedetails The variables afterwards I cannot tidy up. I tried RewriteEngine OnRewriteRule ^([^/]*)\.html$ /storedetails?storeid=$1 [L] in the .htaccess I thought that should return www.no-match.co.uk/southport.html But it doesnt.. And besidesI would prefer without the suffix The end result I would like is no-match.co.uk/southport but currently it is showing like no-match.co.uk/storedetails?storeid=southport Any help is appreciated. Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now