Yii Framework Forum: Htaccess for remote server - Yii Framework Forum

Jump to content

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

Htaccess for remote server Rate Topic: -----

#1 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 05:30 AM

Iam using following .htaccess file locally and it is working fine.

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


but when I put it on remote server, it gives me "500 INTERNAL SERVER ERROR"

Can some one guide me in this regards
0

#2 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,339
  • Joined: 12-October 09
  • Location:Croatia

Posted 15 April 2010 - 05:38 AM

take a look here: http://www.yiiframew...__fromsearch__1
Find more about me.... btw. Do you know your WAN IP?
0

#3 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 15 April 2010 - 05:42 AM

Check the server logfile, if you have access. mod_rewrite is probably missing on the webserver.
0

#4 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 07:27 AM

I have checked, MOD_REWRITE is enabled. And Iam still getting 500 internal server error.
0

#5 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 15 April 2010 - 07:32 AM

Then only server (error-)log can clarify, what's wrong.
0

#6 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 07:38 AM

Can you tell its location. Right now Iam using BLUEHOST.
0

#7 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 15 April 2010 - 07:40 AM

Can't tell, as i don't know Bluehost. Maybe give them a call?
0

#8 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,339
  • Joined: 12-October 09
  • Location:Croatia

Posted 15 April 2010 - 07:41 AM

Have you looked at the thread I posted the link... have you tried what I and JFReyes suggested there?
Find more about me.... btw. Do you know your WAN IP?
0

#9 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 07:49 AM

Yes I used fillowing htaccess from your mentioned link.

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 [L]



My website link is :

Web Focus
0

#10 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,339
  • Joined: 12-October 09
  • Location:Croatia

Posted 15 April 2010 - 07:56 AM

Have you tried without the
Options +FollowSymLinks
IndexIgnore */*

Find more about me.... btw. Do you know your WAN IP?
0

#11 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 07:58 AM

Yes I tried it.
0

#12 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 15 April 2010 - 09:19 AM

Now Iam getting following error :

an error occurred while processing this directive

Web Focus
0

#13 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 15 April 2010 - 09:24 AM

It's all just wild guessing. Again: call your provider, he can help.
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