TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   .htaccess problem with godaddy? (http://www.talkphp.com/general/3459-htaccess-problem-godaddy.html)

sarmenhb 10-09-2008 08:10 AM

.htaccess problem with godaddy?
 
is there a .htaccess problem with godaddy?

this is the htaccess file i put in the root of the domain

Code:

Options FollowSymLinks
RewriteEngine On
RewriteRule ^alice.html$ bob.html

and i also create alice.html and bob.html
when i went to the domain

domain.com/alice.html nothing :(

am i doing something wrong or??

xenon 10-09-2008 08:17 AM

The dot (.) is a special character in regex. Therefore, it needs escaping:

Code:

RewriteRule ^alice\.html$ bob.html

CoryMathews 10-09-2008 12:09 PM

I was never able to get it to work with my godaddy account but i could have be doing something wrong also.

sarmenhb 10-09-2008 03:36 PM

Quote:

Originally Posted by xenon (Post 18714)
The dot (.) is a special character in regex. Therefore, it needs escaping:

Code:

RewriteRule ^alice\.html$ bob.html

thanks, did that but nothing happend.
the server is setup under windows maybe they dont have url rewrite enabled in windows. ill have to talk to them.


All times are GMT. The time now is 08:45 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0