PDA

View Full Version : m2script help!


stoplightt
July 24th, 2008, 11:26 PM
ok, so, im trying to do some things to this m2script but im having trouble!

ok, in the url, like the index.php?id=21695849851. like how it is random!
do you know how i can get it so that its not random, and its the name of the catagory? or a number, like 1,2,3,4,5 instead of a number that big?

ive looked in the .htaccess and its like this

RewriteEngine on
RewriteRule ^(.*)\.html$ http://stoplightt.com/layouts/preview2.php?alias=$1 [L]

ive looked all over for the "alias=$1" but i cant find it

=[

can anyone help?
a friend of mine, said it cant be done, but anything is possible ;)

marshall_26
July 25th, 2008, 08:44 AM
ok, so, im trying to do some things to this m2script but im having trouble!

ok, in the url, like the index.php?id=21695849851. like how it is random!
do you know how i can get it so that its not random, and its the name of the catagory? or a number, like 1,2,3,4,5 instead of a number that big?

ive looked in the .htaccess and its like this

RewriteEngine on
RewriteRule ^(.*)\.html$ http://stoplightt.com/layouts/preview2.php?alias=$1 [L]

ive looked all over for the "alias=$1" but i cant find it

=[

can anyone help?
a friend of mine, said it cant be done, but anything is possible ;)

You'll need to change the script, I do believe that value is used to retrieve the content from the database...


WHERE something='21695849851'

sitedesigner
July 25th, 2008, 08:51 AM
which script is it? is it the layout one?

Edwin
July 25th, 2008, 10:08 AM
^^ yeah i believe its the layout script

stoplightt
July 25th, 2008, 08:55 PM
m2script?

i think

ha

stoplightt
July 25th, 2008, 08:57 PM
You'll need to change the script, I do believe that value is used to retrieve the content from the database...


WHERE something='21695849851'

so i would have to get a new one
:O