Page 1 of 1

.htaccess

Posted: Thu Jul 26, 2012 6:06 pm
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

Re: .htaccess

Posted: Thu Jul 26, 2012 6:47 pm
by bowersbros
%22 means " so somewhere you are putting in a " which is being converted to be url encoded.

Re: .htaccess

Posted: Sun Jul 29, 2012 1:39 am
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