azdg script - shorten url with mod rewrite

Ask your mod_rewrite and Redirection questions here, and get answers!

azdg script - shorten url with mod rewrite

Postby tenoch » 23 Oct 2006 23:58

I use http://www.azdg.com script
And I Have urls like:
http://www.google.com/view.php?l=es&id=0000000577

In some tutorial, it says that for shorten the url:

***************************
http://www.google.com/view.php?id=1234
you can make feature for access url like:
http://www.google.com/~username
to write in .htaccess the following:

************************


Code: Select all

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+).html http://www.google.com/view.php?id=0&nick=$1 [L]


But When I look to my page, all is the same

But if I type:
http://www.google.com/username.html
when username is a valid existing username

example:
http://www.google.com/Wera.html

It redirects me to:
http://www.google.com/view.php?id=0&nick=Wera

But what I want, is to have the urls like:
http://www.google.com/Wera.html directly converted in my homepage
without typing the urls

Another person, told me:
BUT you need to make a template index page modification to call
$username . ".html"


But I don't know that either


Any Idea?
Thanks
tenoch
 
Posts: 1
Joined: 23 Oct 2006 23:49
Location: Mexico

Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: ShakhtarrDon

cron