954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't access admin after writing .htaccess

Hi all,

I m newbie in .htaccess i am using .htaccess to make url SEO friendly.

I can access admin in localhost of my pc. but when i put all this files to my server i can't access admin. it shows me white blank page. without any message or error.

Please help me out to solve this problem. here is my .htaccess code.

Options +FollowSymLinks
RewriteEngine on

RewriteRule admin$ admin/index.php
RewriteRule admin/$ admin/index.php

RewriteBase /exotic/

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^fleet/(.*)/$ fleet_car.php?fl_id=$1 [QSA]

RewriteRule ^service/(.*)/$ services.php?s_id=$1 [QSA]

RewriteRule ^exoticcars/(.*)/$ exoticcar.php?e_id=$1 [QSA]


as i wrote rule for admin it works only in my localpc but didnt work with my server.

my site url is www.mysite.com/exotic

my site admin url is www.mysite.com/exotic/admin


Please help me out asap.:S

Thanks in advance. !

pbcomput
Junior Poster in Training
59 posts since Feb 2010
Reputation Points: 19
Solved Threads: 4
 

Hi pbcomput,

Some webhosts are quite strict with what they will allow in .htaccess files. My previous host for example wouldn't allow me to customise them at all.

Contact your host and ask them if you are allowed to add your own .htaccess files.


Hope this helps.
Zagga

Zagga
Posting Whiz in Training
257 posts since Dec 2009
Reputation Points: 22
Solved Threads: 54
 

Hi Zagga,

my host allow me to put htaccess file.and all of my .htaccess rules are working fine with this .htaccess for example - RewriteRule ^fleet/(.*)/$ fleet_car.php?fl_id=$1 [QSA] rule for get url SEO friendly. and i got that url.

so, my problem is that i can't access admin panel. it seems that i done some mistake to write rule for admin panel. please help me to correct admin rule for .htaccess.


Thanks in advance.!

pbcomput
Junior Poster in Training
59 posts since Feb 2010
Reputation Points: 19
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: