Re: Rewriting urls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 3/26/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Mon, March 26, 2007 12:14 pm, lists@xxxxxxxxxxx wrote:
> I am having some problems getting my mod_rewrite to work on my
> development
> server. On my
> production server (linux) this works fine. But on my development
> server it
> woun't work.
>
> I have a file basicpage.php that is located in the webroot. I then
> have
> a .htaccess file
> with the following content:
>
>
> #DirectoryIndex index.php index.html
> #Options +FollowSymLinks
> #RewriteBase /relative/web/path/
>
> <IfModule mod_rewrite.c>
>   RewriteEngine On
>   RewriteRule ^article/([0-9]+)/[-a-zA-Z]+$ /basicpage.php?id=$1
> </IfModule>
>
>
> The rewrite works as expected on the production server, but on the
> development
> server it
> don't want to work. I also tried it on a windows machine but it don't
> want to
> work there
> either.
>
> Any suggestions/insights?

Two Suggestions:

Check AllowOverride in httpd.conf

Ask on an Apache list, since there is zero PHP here.

OMG, this problem is already solved, and you're telling him he has to
go to the apache list :P

Tijnema

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux