View Full Version : htaccess file help?
igotregistered
09-09-2010, 05:12 PM
Hello, I have run into a bit of a problem.
I run my own website on godaddy deluxe shared hosting. Yesterday I purchased another domain name.
I can have upto 25 different domains, hosted simultaneously as long as each domain is in it's own directory within the root of my primary domain.
For the last 24hrs I've had a simple html landing page for the future site. Today I installed a forum script. Everything went well, no problems.
However, after I installed and removed the html landing page, the new domain no longer resolves. I get a 500 internal server error. It won't access the index.php file.
So I removed the index.php file and put back the index.html file. It resolves again.
Here's the other part. If I go to my primary domain like this http://www.mydomain.com/newdomaindirectory the forum index resolves.
I called Godaddy and they told me if I remove my htaccess file everything will work. Or I have to edit my htaccess. Of which they can't help.
Can anybody help me edit so both sites work?
Thank you
jscheuer1
09-09-2010, 05:42 PM
I probably cannot - my .htaccess is very beginner level, though I may be able to suggest some things.
But I don't think anyone can help if they can't see what's currently in the .htaccess file. You probably don't need to include any sensitive information, like you can substitute mydomain and otherdomain for the real domain names, use xxxx to represent passwords, if any, etc.
However, if godaddy has a forum, that might be a better place to pose this question.
One thing though, are you sure PHP is active on this other domain?
igotregistered
09-09-2010, 06:26 PM
I probably cannot - my .htaccess is very beginner level, though I may be able to suggest some things.
But I don't think anyone can help if they can't see what's currently in the .htaccess file. You probably don't need to include any sensitive information, like you can substitute mydomain and otherdomain for the real domain names, use xxxx to represent passwords, if any, etc.
However, if godaddy has a forum, that might be a better place to pose this question.
One thing though, are you sure PHP is active on this other domain?
Sure, thank you for responding :)
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
# RewriteBase /video
# RewriteBase /video
RewriteBase /
TheLastSuperman
09-10-2010, 04:57 AM
Sure, thank you for responding :)
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
# RewriteBase /video
# RewriteBase /video
RewriteBase /
vBulletin with vBSEO from the looks of it.. I say comment out that last line first the RewriteBase /
Simply add a # in front of it as you see directly above ;).
After that upload it to your server, check and see it this fixes it, if not did you follow the directions properly to install and configure vBSEO?
Make sure you installed the product, the htaccess file is correct *one comes in the vbseo files you can use that one as yours above is simple and the custom part video is commented out already. I say use that one instead as it's clean and meant for vBSEO :D.
Now if that does not work make sure your forum URL is set correctly.
Here's a video on how to install vBulletin:
http://www.innovationbyinstinct.com/version-4-basics/38-installation.html
Here's one for Upgrading:
http://www.innovationbyinstinct.com/version-4-basics/41-upgrading.html
These are also available on vBulletin.com and I have a sticky thread here with more tips on Backups, Upgrades, and Recovery:
http://www.vbulletin.com/forum/showthread.php?335689-Suite-OR-Forum-How-2-Guide-Backups-Upgrades-and-Recovery!
Just make sure you double check behind yourself and you can get it working ;).
Mike
igotregistered
09-10-2010, 11:12 PM
Naa, that doesn't work.
Here's the deal. It is vbSEO. I have a vbulletin forum on the primary domain, and I'm trying to install a forum on the secondary domain.
While I can install any video script with no problems to a directory on the secondary domain, (ex. vidiscript, clipbucket, clipshare)
I can't install any community forum to the root or a directory on the secondary forum. I've tried vbulletin, SMF and phpBB3. None of them will install???
It's driving me nuts.
TheLastSuperman
09-14-2010, 12:09 AM
Naa, that doesn't work.
Here's the deal. It is vbSEO. I have a vbulletin forum on the primary domain, and I'm trying to install a forum on the secondary domain.
While I can install any video script with no problems to a directory on the secondary domain, (ex. vidiscript, clipbucket, clipshare)
I can't install any community forum to the root or a directory on the secondary forum. I've tried vbulletin, SMF and phpBB3. None of them will install???
It's driving me nuts.
Then it's either something your Host has in place server/setup wise or it's a file/something you have done.
It would be more helpful for you to check here:
http://www.vbulletin.com/forum/forumdisplay.php?152-vBulletin-4-Installations-and-Upgrades
Or
http://www.vbulletin.com/forum/forumdisplay.php?153-vBulletin-4-Questions-Problems-and-Troubleshooting
Naturally you would think post in the Installation and Upgrades but you seem to have some experience and more are now browsing the Problems and Troubleshooting forum that would more than likely view your post and might have ran into the exact same situation with their setup etc. On most platforms I would use their official support forums, now if your a SUITE owner you have ticket support just not with Forum but if that's the case simply post and a community member will help you out. The only reason you should post here is more trust based on who you know however I only see 33 posts or if your using this forum to resolve your questions because your running "nulled" software and cannot receive support officially, I'm no psychic but it leaves the mind to wonder just "saying" :o.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.