Ashoat Posted December 21, 2010 Posted December 21, 2010 So... you definitely do have an .htaccess. And it has rewrite rules. root@stevie [/home1/blade76/public_html]# cat .htaccess <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} .*/http-bind RewriteRule (.*) /http-bind [L] RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} !/ow_updates/index.php RewriteCond %{REQUEST_URI} !/ow_updates/ RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule (.*) index.php AuthName j-shaw.co.uk IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* Is this a recent change? Have you tried removing it?
Jordan Shaw Posted December 21, 2010 Author Posted December 21, 2010 I've not changed anything by hand, but it mist have been when i accidently deleted all of my files, which was the Frontpage extension ones, but even then I could not see .htaccess in my directory beforehand anyway. Just postinfo.html and something else with all the other folders. Could it have been when I was trying to install Oxwall Community Software? RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} !/ow_updates/index.php RewriteCond %{REQUEST_URI} !/ow_updates/ RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] That's what that part is, ow_updates was a folder in the file, and changed the .htaccess file to go to index.php so it would work?
Ashoat Posted December 21, 2010 Posted December 21, 2010 If you're not seeing the .htaccess, it might be that your FTP client is considering it a hidden file (hidden files are prefixed with a period character in *NIX systems). Does everything work if you remove the file?
Jordan Shaw Posted December 21, 2010 Author Posted December 21, 2010 What do you mean, if what file is removed? The .htaccess file?
slcrazydiamond Posted December 22, 2010 Posted December 22, 2010 Has it been deleted? I think he ment that you need to try that self
Jordan Shaw Posted December 22, 2010 Author Posted December 22, 2010 Has it been deleted? I think he ment that you need to try that self I can't remove it. I do not know where I can gain access to the file, to delete it.
slcrazydiamond Posted December 22, 2010 Posted December 22, 2010 if you use for example filezilla ftp client you can force it to show hidden files. With that you should be able to.
Guest Geoff Posted December 22, 2010 Posted December 22, 2010 Just upload and index.php file to your public_html directory with the following code: $filename = __DIR__.'/.htaccess'; chmod($filename, 0777); unlink($filename); unlink(__FILE__); Then visit the url to your site.
Jordan Shaw Posted December 26, 2010 Author Posted December 26, 2010 Just upload and index.php file to your public_html directory with the following code: $filename = __DIR__.'/.htaccess'; chmod($filename, 0777); unlink($filename); unlink(__FILE__); Then visit the url to your site. I put that code into the index.php file and it doesn't show up as htaccess file, just as a page with that text on it. OK, I've got my htaccess file on my computer. This is what it is: <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} .*/http-bind RewriteRule (.*) /http-bind [L] RewriteCond %{REQUEST_URI} !^/index.php RewriteCond %{REQUEST_URI} !/ow_updates/index.php RewriteCond %{REQUEST_URI} !/ow_updates/ RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC] RewriteRule (.*) index.php AuthName j-shaw.co.uk IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* What would I need to change?
Ashoat Posted December 26, 2010 Posted December 26, 2010 You need to /delete/ that file. The script Geoff wrote for you will delete the file for you.
Jordan Shaw Posted December 26, 2010 Author Posted December 26, 2010 I've deleted the .htaccess file now. What next?
Byron Posted December 26, 2010 Posted December 26, 2010 It looks like your ready to go now. I'm seeing your index.php now. The reason your seeing that code instead of it executing the script is becasue you forgot the php tags. <?php & ?> Go ahead and create an index.html file if that is what you intend to use.
Jordan Shaw Posted December 26, 2010 Author Posted December 26, 2010 Ahh. Thank you for all of your help! It now looks to all be working, with index.html as my main web-page when visiting my website! You're a really great team of people, honestly! Kind regards, Jordan
Recommended Posts