Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển vũ
Thank you very much for help me this matter. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: How use .htaccess to redirect these urls

2011-12-02 Thread AD7six
On Friday, 2 December 2011 11:00:03 UTC+1, Điển vũ wrote: > > I post at here , because if i use RewriteCond %{REQUEST_URI} in htaccess. > It seems any urls in cakephp contain webroot. > They will, if you're using a development install. webroot should be your webserver root - not app. > > An

Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển vũ
I post at here , because if i use RewriteCond %{REQUEST_URI} in htaccess. It seems any urls in cakephp contain webroot. And I followed your suggestion redirect urls in routes.php: if (preg_match('/webroot/', Router::url(null, false))) { header("Location: " . str_replace('/webroot',

Re: How use .htaccess to redirect these urls

2011-12-02 Thread AD7six
On Thursday, 1 December 2011 23:51:56 UTC+1, Điển vũ wrote: > > How can i redirect these urls ( use Htaccess): > > http://example.com/webroot/posts/1/post_slug > to > http://example.com/posts/1/post_slug > > i read and do a lot but can't . Please help me solve this matter. > > If you want to do

How use .htaccess to redirect these urls

2011-12-01 Thread Điển vũ
How can i redirect these urls ( use Htaccess): http://example.com/webroot/posts/1/post_slug to http://example.com/posts/1/post_slug i read and do a lot but can't . Please help me solve this matter. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check ou