You are here: Re: forward named page to php query « All PHP « IT news, forums, messages
Re: forward named page to php query

Posted by J.O. Aho on 12/03/05 15:27

Disco Octopus wrote:

> OK. I got it sorted....
>
> RewriteEngine On
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^/events/(.*).html$ /event.php?code=$1
>
> Now I face another problem (In which I will also post to
> alt.www.webmaster)...
>
> On my dev machine (Windows XP) I run Apache, and I put this above code in
> my httpd.conf file. This works nicley. However, my host does not allow
> access to the httpd.conf file, and therefore I would expect that this same
> code can go in my .htaccess file on the server.
> Wel, It just doesnt work. Any ideas?

Think the htaccess has a limited amount of things it can do, a fast look at
apache.org lists the following:


AccessFileName
AllowOverride
Options
AddHandler
SetHandler
AuthType
AuthName
AuthUserFile
AuthGroupFile
Require

I do suggest you take contact with the webhost on Monday and ask if they can't
help you with the rule. Some may do it, others may charge you some extra and
most will deny.


//Aho


PS. removed that follow-up as I'm not subscribing the other ng.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация