Yii Framework Forum: Using Url Manager - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Using Url Manager Search engine friendly URL

#1 User is offline   Basant gaur 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 28
  • Joined: 20-February 14

Posted 07 May 2014 - 07:38 AM

I want to use URL manager in one of my YII project , I have enabled the URL manager component in main.php

'urlManager'=>array(
'urlFormat'=>'path',
'showScriptName'=>false,


I have also added the .htaccess file under my document root , which contains the following rule


Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . index.php



Now if I try to open an URL such as http://sample.com/ca...ispaly&step=all , nothing happens , the user remains on the home page only , can any one help me out. due to some unknown reasons I am not able to highlight the code .


Thanks
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users