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
.htaccess
Re: .htaccess
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 :
This is the code I have in the htaccess :
RewriteEngine On RewriteRule ^([a-z0-9]+)$ go.php?key=$1
Re: .htaccess
That is normal, the . at the start of the name means hidden to most OSsNikitaa wrote:i create it the file becomes hidden and i have to crtl+h to see it
What does it do ? When you browse to http://thing.com/key what do you get ?Nikitaa wrote:It Doesn't shorten the uurl's
Re: .htaccess
It Just says invalid key .
Htaccess worked in your lamp server from the start ?
Htaccess worked in your lamp server from the start ?
Re: .htaccess
Well that sounds like it is working
Try doing
Try doing
echo $_GET['key'];and see what you get ?
Re: .htaccess
It's Working , nevermind
Thabk you
Thabk you