i was wondering how to remove the question mark and the equal sign from the url when using the get method example: http://mysite/test.php?city=canada i want it to be like this http://mysite/test.php-city-canada either using dash or something of my choice, i think this could be done on .htaccess but i just haven't found any example online or a way.
if you were wedded to using dashes instead of slashes, it would probably be something like RewriteRule ([a-zA-Z]+)-([a-zA-Z]+)-([a-zA-Z]+)$ $1.php?$2=$3
http://mysite/test.php?city=canada i want it to be like this http://mysite/test.php-city-canada either using dash or something of my choice, i think this could be done on .htaccess but i just haven't found any example online or a way.
http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls/
Is that helpful? :)
A rewrite rule like:
RewriteRule ([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+)$ $1.php?$2=$3
would (I believe, I haven't tested it) let you turn
http://mysite/test/city/canada
into
http://mysite/test.php?city=canada
if you were wedded to using dashes instead of slashes, it would probably be something like
RewriteRule ([a-zA-Z]+)-([a-zA-Z]+)-([a-zA-Z]+)$ $1.php?$2=$3
giving a possible link of
http://mysite/test-city-canada
That should work. Does anyone see any goofs I've made?
To really understand it though, look over Robskiwarrior's link. It's where I actually got most of this info from.
Hey I have an html website on my computer and I want to make files for each search. i dont have .htaccess. Is there another way I can do it???
Please HELP
example: search"syberfx" search url:http://example.com/?=syberfx I cant make a file with a "?". Thats my problem..
PLEASE HELP!! Thanks
This thread is almost two years old. Are you trying to contribute to that conversation, or do you have a new question?
If you're asking your own question, you should start a new thread instead of posting a comment in this one.