another newbie needs help
Posted 14 October 2006 - 10:18 AM
i would like to turn this address:
to something like:
http://localhost/htdocs/shoping/Sapuni/1.html (extension is not mandatory)
I tried on other forums,and i get this.i put this in htaccess file in 'shoping 'directory,but it doesn't work...
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^(.*)shoping/(.*)/(.*)$ $1index.php?kategoria=$2&id=$3
Btw,mod rewrite module is turned on
Thanks in advance!
Posted 14 October 2006 - 10:51 AM
RewriteEngine On RewriteBase /htdocs/shoping/ RewriteRule ^([a-zA-Z]+)/([0-9]+).html$ index.php?kategoria=$1&id=$2
I dont know if this is a tupo but shoping is spelt shopping (note 2 p's)
Posted 14 October 2006 - 11:25 AM
i just tested it,but i don't understand some things...
When i type something like this in adress bar of browser:
i get page without any formating(pages layout is controlled via external css file)...
And yes,i make typos(i am not native english speaker/writer-can you believe
Posted 16 October 2006 - 07:58 AM
If someone have experience in this field,i need just some generaly advices about it.
Thanks in advance.
Posted 16 October 2006 - 06:20 PM
<?php echo 'http://' . $_SERVER['HOSTNAME'] . 'com' ?>/path/to/file_here
Or hard code it in to a file that always gets included/required into your PHP scripts.
Posted 16 October 2006 - 06:35 PM
I thought about changes of code which is dependable on vars from address bar of browser(how to get vars if there is no vars).
However,i solve problem with some modifications of script(i expected even more modifications,but it works correctly now,with just few:-))
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users