Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
^index.html or ^/index.html in .htaccess mod_rewrite
Old 06-20-2005, 02:18 PM ^index.html or ^/index.html in .htaccess mod_rewrite
Novice Talker

Posts: 9
Location: Moscow, Russia
Trades: 0
Hi!
I have a following code in .htaccess file:

Code:
^eng_index.html /index.php?lang=eng
At home server this works, but another server (payed hosting) apperars error. Server administrator told me that i have to use

Code:
^/eng_index.html /index.php?lang=eng
instead

Why this happened? '^' - means the beginning of string, so why i have to use '/'?

Maybe this servers' RewriteBase is not '/'?
PiterZ is offline
Reply With Quote
View Public Profile Visit PiterZ's homepage!
 
 
Register now for full access!
Old 06-20-2005, 06:46 PM
Novice Talker

Posts: 9
Location: Moscow, Russia
Trades: 0
I've found that '^/' must be used when configuring mod_rewrite from httpd.conf, and '^' when configuring from non-root directory with .htaccess
PiterZ is offline
Reply With Quote
View Public Profile Visit PiterZ's homepage!
 
Reply     « Reply to ^index.html or ^/index.html in .htaccess mod_rewrite
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09559 seconds with 12 queries