Post: URL rewriting
02-13-2016, 02:24 PM #1
KLArcher
Little One
(adsbygoogle = window.adsbygoogle || []).push({}); Okay, I'm quickly going to explain what im trying to do.

When a user visits my Shop and clicks on the product i want it to change from Shop/product.php?id=1 to Shop/1

I have used a few examples from google but they dont seem to do any affect.

Can anybody help?
02-13-2016, 02:26 PM #2
Ali
Can’t trickshot me!
Originally posted by KLArcher View Post
Okay, I'm quickly going to explain what im trying to do.

When a user visits my Shop and clicks on the product i want it to change from Shop/product.php?id=1 to Shop/1

I have used a few examples from google but they dont seem to do any affect.

Can anybody help?


as this is BB code you do [url=urlhere/]Shop/1[ / url ] no spaces . think u should be good then

[url=https://www.nextgenupdate.com/forums//]NGU FORUMS[/url][/url]
02-13-2016, 02:27 PM #3
KLArcher
Little One
Originally posted by Ali View Post
as this is BB code you do [url=urlhere/]Shop/1[ / url ] no spaces . think u should be good then

[url=https://www.nextgenupdate.com/forums//]NGU FORUMS[/url][/url]


I'm not talking about using NextGenUpdate this is for my personal website.
02-13-2016, 02:28 PM #4
Ali
Can’t trickshot me!
Originally posted by KLArcher View Post
I'm not talking about using NextGenUpdate this is for my personal website.


so instead of bb code just use html tags < and /> and check if it works? i just used the NGU Forums as an example
02-13-2016, 02:34 PM #5
KLArcher
Little One
Originally posted by Ali View Post
so instead of bb code just use html tags < and /> and check if it works? i just used the NGU Forums as an example


I think there's a communication issue, when i add a new product to my database everything updates publishing the new product on the shop page. Giving the product a unique ID

eg: product.php?id=22

instead of it being product.php?id=22 i want it to be shop/22 I dont want to have to create additional directories thats why its called URL rewriting.
02-13-2016, 02:35 PM #6
Ali
Can’t trickshot me!
Originally posted by KLArcher View Post
I think there's a communication issue, when i add a new product to my database everything updates publishing the new product on the shop page. Giving the product a unique ID

eg: product.php?id=22

instead of it being product.php?id=22 i want it to be shop/22 I dont want to have to create additional directories thats why its called URL rewriting.


oh sorry, i musunderstood the question, try asking "MEGALELZ" for help on this.
02-13-2016, 02:36 PM #7
KLArcher
Little One
Originally posted by Ali View Post
oh sorry, i musunderstood the question, try asking "MEGALELZ" for help on this.


No problem & Thanks for the information :p
02-13-2016, 02:38 PM #8
Toxic
former staff
Originally posted by KLArcher View Post
Okay, I'm quickly going to explain what im trying to do.

When a user visits my Shop and clicks on the product i want it to change from Shop/product.php?id=1 to Shop/1

I have used a few examples from google but they dont seem to do any affect.

Can anybody help?


u can use regex rewriting rule
You must login or register to view this content.

or use the 'noobsih' way, and make a folder for each product in ftp, then make a html file inside it, and call it "index.html"
Last edited by Toxic ; 02-13-2016 at 02:42 PM.
02-13-2016, 02:43 PM #9
KLArcher
Little One
Originally posted by Habibi
u can use regex rewriting rule
You must login or register to view this content.

or use the 'noobsih' way, and make a folder for each product in ftp, then make a html file inside it, and call it "index.html"


I've followed the information provided on that link already, it doesn't seem to work i dont know whether im doing something wrong :S
02-13-2016, 06:02 PM #10
Originally posted by KLArcher View Post
I've followed the information provided on that link already, it doesn't seem to work i dont know whether im doing something wrong :S


Whats your code?

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo