I have a godaddy linux server and I am wanting to edit my url’s
Here is an example of 3 url’s from my website
- http://www.website.com/b.php?n=30&t=big
- http://www.website.com/b.php?n=20&t=medium
- http://www.website.com/b.php?n=10&t=small
I would like to be able to change them to
MY IMAGE CODE
echo '<img src="gifs/' . $_GET["t"] . '/' . $_GET["n"] . '.gif">';
You can change them by changing all the links on your site from the
/b.php?n=30&t=bigstyle links to the/30/bigstyle links. Then you can put these rules in the htaccess file in your document root:this will change the URI’s back to the ones that route through
b.php.In the event that you have old URL’s floating around the internet and they need to be changed to the new ones, you can use these in the same htaccess files:
This will redirect the browser (or google index bot) to point permanently to the new URLs.