htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: azdg script - shorten url with mod rewrite
PostPosted: Oct 23rd, '06, 23:58 
Offline

Joined: Oct 23rd, '06, 23:49
Posts: 1
Location: Mexico
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:

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB