I have somehow managed to mess up the direction of the index of my website. It seems an old redirect I chucked in via the cpanel, has stuck, even though I have removed it... so my page, now when i type in www.mysite.com goes straight to www.mysite/news.php...i have looked at the index.html and the index.php pages but neither of them include any link to the news.php...so what the hell is going on!!! also...does this problem mean that my SEO will be affected adversely*** all help is greatly appreciated. cheers dan ( i am unsure if I am allowed to post the actual link of my site, hence the use of mysite)
I may have deleted that in order to get the phplist program working...now that is working OK...should i create a new htaccess file*** if so, how!
Is it possible to create a htaccess file*** if so what program do i use*** and is that the reason why my site redirects to the news.php page***
To create a new .htaccess file. Do this Right click on desktop, go to new, click on notepad file or tect file. Rename it to .htaccess Then open it, modify it, et all, and upload it..
What does your script says, to create a new .htaccess? Or in the .zip, or folder, do they got a .htaccess file? If yes, then upload it. To create a . htaccess just write the code in notepad, upload it, should be something.txt then you just rename it to . htaccess and should work.
it won't lways work, better to keep one handy.... So, here is a nice way to get a .htaccess file. Save it and then write all the info in the file using notepad. If you don't have it yet, download Wordpress or any free php based forum/blog software. You'll find one in the root directory.
There was a .htaccess file, but I deleted it to allow the phplist program to install correctly. It was causing an error message when I ran the fantastico install function for phplist...will it force the same error to return, and break my phplist program, if i reinstall a .htaccess file**** and is it certain that this is the problem with my weedguru.com site heading straight to news.php****
Can you copy and paste what's in your current .htaccess file please? Someone may be able to point out the problem and re-write it for you.
I deleted the .htaccess file when I was installing phplist, upon the advice of my host who was trying to help me get the program working. I will search the directory to see if one is there and I am sure in my cpanel, there is an option of creating a .htaccess file. I will take a peek now and if I can find one I will paste it in here.
Found it! its an ascii file. RewriteEngine on RewriteCond %{HTTP_HOST} ^weedguru.com$ [OR] RewriteCond %{HTTP_HOST} ^www.weedguru.com$ RewriteRule ^/?$ http://www.weedguru.com/news.php [R=302,L] in the public html directory...what do i need to change. I can see the redirect. How do i get it to simply go to a page weedguru.com, which I assume will be the index.html or index.php page in the same public html directory***
Well I'd get rid of the last line. That is obviously the redirecting line. If there's a problem after that get rid of all of it. I don't see any use in it.
Cheers for the help people...I deleted all the text, and now it is directing to weedguru.com. As I wished...