RE: clean url problem .htaccess

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

 



> -----Original Message-----
> From: A.a.k [mailto:blueman@xxxxxxxxx]
> Sent: Saturday, August 01, 2009 4:13 AM
> To: php-general@xxxxxxxxxxxxx
> Subject: Re:  clean url problem .htaccess
> 
> what if I don't have access to server to enable mod_rewrite like a
> hosting,
> is there anyway to work around?
> just don't want to build entire website and finally can't get a hosting
> to
> enable mod_rewrite for me.
> 
> 
> "Andrew Ballard" <aballard@xxxxxxxxx> wrote in message
> news:b6023aa40907312352j405778fevd0c38315c3983f0c@xxxxxxxxxxxxxxxxx
> On Sat, Aug 1, 2009 at 2:11 AM, A.a.k<blueman@xxxxxxxxx> wrote:
> > Hi
> > I'm trying to use clean urls in my application:
> > lets say convert http://mysite/article.php?id=3 to
> > http://mysite/article/3/
> > my problem is to use /article act as it was /article.php
> > here is mt .htacess :
> > <FilesMatch "^article$">
> > ForceType application/x-httpd-php
> > </FilesMatch>
> > on php code parsing string from $_SERVER['PHP_SELF'] to get id out.
> >
> > this one works if i use article.php (http://mysite/article.php/3/
> works)
> > but i want to use /article without php extention. is there a way
> around?
> >
> 
> Look up mod_rewrite.
> 
> Andrew


Have you checked to see if you hosting environment allows custom php.ini files? If so, then ask them for information that governs their setup on your server.


Thank you,
Marc Hall
HallMarc Websites
610.446.3346




 

__________ Information from ESET Smart Security, version of virus signature database 4296 (20090801) __________

The message was checked by ESET Smart Security.

http://www.eset.com
 


-- 
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