Post here is you are having problems with any of the tutorials.
Nikitaa
Posts: 4 Joined: Thu Nov 10, 2011 11:28 am
Post
by Nikitaa » Thu Nov 10, 2011 11:32 am
Hello
In your URL Shortener tutorial you demonstrate how to use .htaccess to make urls smaller but I can't get htaccess to work on lamp
Is there any command for that or something ?
Thank you
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Thu Nov 10, 2011 6:53 pm
In what way does it not work ?
Nikitaa
Posts: 4 Joined: Thu Nov 10, 2011 11:28 am
Post
by Nikitaa » Thu Nov 10, 2011 7:02 pm
It Doesn't shorten the uurl's and by the moment i create it the file becomes hidden and i have to crtl+h to see it
This is the code I have in the htaccess :
RewriteEngine On
RewriteRule ^([a-z0-9]+)$ go.php?key=$1
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Fri Nov 11, 2011 8:14 pm
Nikitaa wrote: i create it the file becomes hidden and i have to crtl+h to see it
That is normal, the . at the start of the name means hidden to most OSs
Nikitaa wrote: It Doesn't shorten the uurl's
What does it do ? When you browse to
http://thing.com/key what do you get ?
Nikitaa
Posts: 4 Joined: Thu Nov 10, 2011 11:28 am
Post
by Nikitaa » Fri Nov 11, 2011 9:07 pm
It Just says invalid key .
Htaccess worked in your lamp server from the start ?
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Sat Nov 12, 2011 12:41 pm
Well that sounds like it is working
Try doing
echo $_GET['key'];
and see what you get ?
Nikitaa
Posts: 4 Joined: Thu Nov 10, 2011 11:28 am
Post
by Nikitaa » Sun Nov 13, 2011 10:16 pm
It's Working , nevermind
Thabk you
jacek
Site Admin
Posts: 3262 Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:
Post
by jacek » Mon Nov 14, 2011 10:21 pm
Hurray !