.htaccess

Any help topics that don't fit in the current categories can go here.
Post Reply
wrichards8
Posts: 66
Joined: Thu Jan 12, 2012 3:54 pm
Contact:

.htaccess

Post by wrichards8 »

Is it possible for me to use .htaccess to create vanity URLs if I have values passed via $_GET. I have a URL which looks like this

http://localhost/usersystem/usersite/to ... rumid=1%22

This %22 sign was put in by my browser, I have no idea what I should do
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: .htaccess

Post by bowersbros »

%22 means " so somewhere you are putting in a " which is being converted to be url encoded.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: .htaccess

Post by jacek »

Yeah it's possible, when trying to work this sort of thing out I generally start by deciding what the real URL should be and what I want it to look like. Example,

I might want the user to be on posting.php?mode=reply&f=31&t=1796 but see posting/reply/31/1796

The point is, you have to know this :P
Image
Post Reply