Jump to content

[SOLVED] .htaccess finding file


Recommended Posts

right now i am using http://ip.goes.here/~admin/ to view my website until i switch dns over this new server. http://ip.goes.here/~admin/ points to /home/admin/public_html/.

 

I have an .htaccess in /home/admin/public_html/ saying:

RewriteEngine On
allow from all
RewriteRule ^contact$ contact.php

 

when i go to http://ip.goes.here/~admin/contact.php, it works, but when i go to http://ip.goes.here/~admin/contact, it says:

404: The requested URL /home/admin/public_html/contact.php was not found on this server.
however, i checked it with SSH, and that file does exist.

 

so .htaccess is looking in the wrong place. is this because of the extra directory /~admin/ in the url i have to use until i switch, is it screwing things up?

Link to comment
https://forums.phpfreaks.com/topic/171426-solved-htaccess-finding-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.