Re: URL rewriting...anybody done this?
| From: | Brad Pauly | Date: | Wed, 14 Jan 2004 18:34:56 +0000 |
| Subject: | Re: URL rewriting...anybody done this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174569@lists.php.net to get a copy of this message | ||
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 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.
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?
- Brad