I have some problems with mod_rewrited at .httacess.
We have created a website, the website links have this sctructure.
www.myweb.com/page.php?title=this-is-the-title&filmID=454122
AND
www.myweb.com/video.php?title=this-is-the-title&filmID=2567971&player=veevr
AND
www.myweb.com/gallery/index.php?galeriID=11
is possible to change this structure to:
www.myweb.com/page/this-is-the-title/454122.html
www.myweb.com/video/this-is-the-title/454122/veevr.html
www.myweb.com/gallery/index/11.html
Any help will be really great
Thank you for reading the post!
Best Regards
JoinOG
In your .htaccess file in your web root folder put the following code.
What this does is mask the url
/page/something/12345.htmltopage.php?title=something&filmID=12345. It masks it, so when you go to the first URL it still looks like the first URL in the address bar but is really at the second URL. Simple tutorial on how this works is here: http://corz.org/serv/tricks/htaccess2.phpThe server will think you are in the folder
/page/something/so if your CSS, images and hyperlinks are locally relative links they will not work, e.g. it will look in/page/something/yourimage.pngfor an image linked to like this<img src='yourimage.png'/>. To get it to work as you’d like it to, you’ll need to put a forward slash before all your links to make it relative to your website’s root folder like this<img src='/yourimage.png'/>.