try both rewritebase / and /var/www/vhosts/valulisting/valulisting.com/httpdocs/ both 404 not found

Asked by chinholee3 on 2012-04-06

try both rewrite base / and rewritebase /var/www/vhosts/valulisting/valulisting.com/httpdocs/ still get 404 not found. wat is the rewrite base on ehcp. first time installing on ubuntu server. thank u

Question information

Language:
English Edit question
Status:
Solved
For:
Easy Hosting Control Panel for Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
chinholee3
Solved:
2012-04-08
Last query:
2012-04-08
Last reply:
2012-04-08
ehcpdeveloper (ehcpdeveloper) said : #1

I think, you should use / as rewrite base.
because, /var/www...... is a dir that is seen by apache, not web browser.

if you get 404 not found, then, look at error logs of webserver.
what you see as error; so, you will see what the rewrite rule
redirects the user to.

chinholee3 (chinholee3) said : #2

in wamp server install on window. Document root is c:/wamp/www/catalog. and apply catalog as vhost. and oscommerce with rewritebase/ worked. But in ehcp: Catalog is in /var/www/vhosts/valulisting/valulisting.com/httpdocs/, so i try to write rewritebase as rewritebase/ did not work then rewritebase/httdocs/ and rewritebase/valulisting.com/httpdocs and rewritebase/valulisting/valulisting.com/httpdocs and so on until i got to /var. nothing work please can u help me on what i m doing wrong thank u in advance.

ehcpdeveloper (ehcpdeveloper) said : #3

where is your catalog dir now ?
as rewrite base, try just /
or
try /catalog
because, the php application sees
/var/www/vhosts/valulisting/valulisting.com/httpdocs/ as just /

by the way, do you have to use a rewrite base ?
if still no solution, send your server info to <email address hidden>

chinholee3 (chinholee3) said : #4

SOLVE MY STUPIDITY I FORGET TO PUT HTACCESS AS .HTACCESS. IT WAS READING THE FILE NOT AS TEXT. THANK U FOR ALL UR HELP EHCP. UR REPLY WAS FAST AND PROMPT. THANK U AGAIN