Jump to content

[Solved] Site not working properly.


Jordan Shaw

Recommended Posts

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?

Link to comment
Share on other sites

  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 

 

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...