http://www.xyz.com/index.php/toast
Can I easily strip the "toast" variable from this URL without using a "?". If not, is there a way to setup the server to use this format:
http://www.xyz.com/?toast
Right now, the above format returns an error since I'm not putting in the "index.php".
Thanks.
stripping variable from a URL
Moderator: General Moderators
The easiest way is with mod_rewrite in an .htaccess file:
Then your link would be: http://example.com/index/toast/
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^index/(.*)/$ index.php?id=$1
</IfModule>i was useing
http://www.mysite.com/folder/?bla=1
for a while, it worked fine...untill i tried it out with opera
, so now i use
http://www.mysite.com/folder/index.php?bla=1...
i dont really see any problem with adding "index.php"part to it
.
http://www.mysite.com/folder/?bla=1
for a while, it worked fine...untill i tried it out with opera
http://www.mysite.com/folder/index.php?bla=1...
i dont really see any problem with adding "index.php"part to it