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.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
mod_rewrire can't find the existing file!
Old 12-07-2009, 03:39 AM Question mod_rewrire can't find the existing file!
Novice Talker

Posts: 7
Name: serkan
Trades: 0
Hi I have a .htaccess file tested on many different servers. Up to now everything was fine.

On a new server installation I get an error

The requested URL /home/site/public_html/index.php was not found on this server. (Calling url is 192.168.2.200/~site/en/)

Infact the file exists but there is some thing missing in the path. It should be

/usr/home/site/public_html/index.php


More information: --------------

Site is hosted at 192.168.2.200/~site/
User director in the file system is /usr/home/site
System: FreeBSD est.abegp.gov.tr 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 08:37:42 UTC 2008 :/usr/obj/usr/src/sys/SMP amd64
Server API: Apache 2.0 Handler

.htacces file part:

RewriteEngine on

DirectoryIndex index.html index.php

Options -Indexes

RewriteRule ^([a-z]{2})/?$ index.php?lang=$1&
__________________
Fil bilişim

Please login or register to view this content. Registration is FREE

Last edited by tutunmayan; 12-07-2009 at 04:47 AM..
tutunmayan is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-07-2009, 05:40 AM Re: mod_rewrire can't find the existing file!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,381
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
obviously "this" server has the paths set differently.

rewrite the rules accordingly.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-08-2009, 03:04 AM Re: mod_rewrire can't find the existing file!
Novice Talker

Posts: 7
Name: serkan
Trades: 0
OK...
I have too many rules like "RewriteRule ^([a-z]{2})/?$ index.php?lang=$1& " in .htaccess file.
instead of adding /usr/home/site/public_html/ before file names of all rules, is there any easy way of doing this?

for example adding a last rule at the end of the file that adds this path to files.
__________________
Fil bilişim

Please login or register to view this content. Registration is FREE
tutunmayan is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mod_rewrire can't find the existing file!
 

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.89437 seconds with 12 queries