Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   03-26-2008, 02:48 PM
ukfg has a spectacular aura about Join Date: Jul 2007 Posts: 127 Location: uk
.htaccess file


i am trying to install something that needs me to amend the .htaccess file in my forum root folder...never done this before and cannot see one.
--------------------
UK Forces Girls ~ THE online community for British Forces wives & girlfriends
Quote   |  



#2   03-26-2008, 03:06 PM
Yogesh Sarkar is just really niceYogesh Sarkar is just really nice Join Date: Feb 2007 Posts: 731 Location: New Delhi, India
Re: .htaccess file


I think it should really be in your site's root folder, but could be wrong about that. If you can't see the file, that means it hasn't been created yet, just create one and upload it.
Quote   |  



#3   03-26-2008, 03:46 PM
ukfg has a spectacular aura about Join Date: Jul 2007 Posts: 127 Location: uk
Re: .htaccess file


not sure what i am meant to do now...

I am trying to add the Amazon store mod that was posted on here a couple of days ago. It tells me to

"Append the contents of the "htaccess.NEW" file to the .htaccess file in the root of your forum."

I took that to mean add the contents to the .htaccess file, which I found after going in through the admin panel on the host (still not showing via FTP for some reason). I uploaded it, and the site died.
--------------------
UK Forces Girls ~ THE online community for British Forces wives & girlfriends

Last edited by ukfg; 03-26-2008 at 03:56 PM.
Quote   |  



#4   03-26-2008, 04:00 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: .htaccess file


copy the contents of the htaccess.NEW file that was in the amazon mod.

Open your sites .htaccess file and add it to the bototm of that.

Save and reupload. If you're site is still dead, simply remove the changes you did to .htaccess and try again.


(some FTP programs won't show .htaccess files for some reason)
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#5   03-26-2008, 04:03 PM
ukfg has a spectacular aura about Join Date: Jul 2007 Posts: 127 Location: uk
Re: .htaccess file


thats what i have done, its dead with the changes! Fine again when I uploaded it without
--------------------
UK Forces Girls ~ THE online community for British Forces wives & girlfriends
Quote   |  



#6   03-26-2008, 04:08 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: .htaccess file


Post your old .htaccess here and then post the changes that need to be made and i'll have a look
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#7   03-27-2008, 11:26 AM
ukfg has a spectacular aura about Join Date: Jul 2007 Posts: 127 Location: uk
Re: .htaccess file


thank you

current:
Code:
# 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 /
RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
changes needed:
Code:
Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^amazon_store_(.*)_(.*)_(.*).html$ amazon_store.php?page=$3&custom_search=$1&custom_search_index=$2
RewriteRule ^amazon_item_(.*)_(.*)_(.*)_(.*)_(.*).html$ amazon_store_detail.php?&item=$2&page=$1&custom_search=$3&custom_search_index=$4
--------------------
UK Forces Girls ~ THE online community for British Forces wives & girlfriends
Quote   |  



#8   03-27-2008, 12:34 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: .htaccess file


Code:
RewriteEngine On
RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^amazon_store_(.*)_(.*)_(.*).html$ amazon_store.php?page=$3&custom_search=$1&custom_search_index=$2
RewriteRule ^amazon_item_(.*)_(.*)_(.*)_(.*)_(.*).html$ amazon_store_detail.php?&item=$2&page=$1&custom_search=$3&custom_search_index=$4
That should do it for ya
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  



#9   03-27-2008, 12:59 PM
ukfg has a spectacular aura about Join Date: Jul 2007 Posts: 127 Location: uk
Re: .htaccess file


with that i get

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@ukforcesgirls.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
--------------------
UK Forces Girls ~ THE online community for British Forces wives & girlfriends
Quote   |  



#10   03-27-2008, 01:03 PM
Send a message via Yahoo to Dave Dave is a jewel in the roughDave is a jewel in the rough Join Date: Jan 2008 Posts: 771 Location: Ohio
Re: .htaccess file


Code:
Options +Indexes
Options +FollowSymlinks

# 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

RewriteRule ^amazon_store_(.*)_(.*)_(.*).html$ amazon_store.php?page=$3&custom_search=$1&custom_search_index=$2
RewriteRule ^amazon_item_(.*)_(.*)_(.*)_(.*)_(.*).html$ amazon_store_detail.php?&item=$2&page=$1&custom_search=$3&custom_search_index=$4

# 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 /
RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
If this one doesnt do it my last guess would be

Code:
Options +Indexes
Options +FollowSymlinks

# 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
RewriteBase /

RewriteRule ^amazon_store_(.*)_(.*)_(.*).html$ amazon_store.php?page=$3&custom_search=$1&custom_search_index=$2
RewriteRule ^amazon_item_(.*)_(.*)_(.*)_(.*)_(.*).html$ amazon_store_detail.php?&item=$2&page=$1&custom_search=$3&custom_search_index=$4

# 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)

RewriteRule ^((urllist|sitemap).*.(xml|txt)(.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} (admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !chat
RewriteRule ^(.*.php)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1&%{QUERY_STRING} [L]
After that, i'll be stumped
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! World of Warcraft Macros
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess Troubles sinjix_media vBulletin Hacks - Modifications 0 11-26-2007 11:20 AM
I don't understand what to do with the PSD file Luigi vBulletin Skins, Styles and Templates 6 11-07-2007 09:26 PM
file lost terry brian Computer Tech Information 5 05-22-2007 11:20 AM
small .htaccess changes required for vbulletinsetup portal SaN-DeeP Feedback and Suggestions 4 03-16-2007 09:14 PM
.htaccess help harmor vBulletin SEO Tips and SEO Questions 7 02-12-2007 01:39 PM


All times are GMT -6. The time now is 09:52 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory