Re: URL rewriting...anybody done this?
| From: | Ryan A | Date: | Wed, 14 Jan 2004 18:44:26 +0000 |
| Subject: | Re: URL rewriting...anybody done this? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-174570@lists.php.net to get a copy of this message | ||
Hey,
Thanks for replying.
It seems to be partly working.
/*
How isn't it working? What happens? I would try one variable first, get
that working, then add the others. Also, I am not sure how it will
handle the space in "Beginners Corner". Try passing simple values first.
*/
Its a bit hard to explain what happens so see for yourself:
Heres the index page:
http://www.rizkhan.net/articles/articles.php
Heres the actual page:
http://www.rizkhan.net/articles/show.php?category=Beginners%20Corner&sid=1&id=1
and then if you modify it to:
http://www.rizkhan.net/articles/show/Beginners%20Corner/1/1
it just shows me the index...which even links wrong.
Ok, will try to pass a value without the space in between.
/*
I am assuming you have Apache compiled with mod_rewrite and you have the
proper settings in httpd.conf (ie. LoadModule). Did you restart Apache?
*/
Yep, mod_rewrite is installed (http://rizkhan.net/phpinfo.php)
I did restart apache.
Any ideas?
-Ryan
On 1/14/2004 7:34:56 PM, Brad Pauly (brad@robinsontech.com) wrote:
> On Wed, 2004-01-14 at 11:14, Ryan A wrote:
> > Hi,
> > I have a blog kind of app running on my site...presently it shows like
> this:
> > show.php?category=Beginners%20Corner&sid=1&id=1
> >
> > After searching on google on how to make my blog my search engine
> friendly I
> > came accorss
> > mod_rewrite and couple of tutorials on it, finally the one I understood
> and
> > tried to use was this one:
> >
> > http://www.phpfreaks.com/tutorials/23/0.php
> >
> > so I added this to my .htaccess:
> > RewriteEngine On
> > RewriteRule ^show/(.*)/(.*)/(.*).php
> > /show.php?category=Beginners%20Corner&sid=$2&id=$3
> >
> > and added this to my httpd.conf:
> > AccessFileName .htaccess
> > <Files ~ "^\.ht">
> > AllowOverride all
> > Order allow,deny
> > Deny from all
> > Satisfy All
> > </Files>
> >
> > <Directory /usr/local/www/rizkhan.net/www/articles>
> > Options ExecCGI FollowSymLinks Includes MultiViews
> > AllowOverride all
> > </Directory>
> >
> > But somehow its not working :-(( I made the changes in the httpd.conf
> and
> > also in a .htaccess file...
>
> How isn't it working? What