Post Reply  Post Thread 
.htaccess file is now allowed on my host
poogoo
Junior Member
**

Posts: 2
Group: Registered
Joined: Mar 2008
Status: Offline
Reputation: 0
Post: #1
.htaccess file is now allowed on my host

Hey Pacifier,

I contacted my host, remember, they didn't allow .htaccess files? Well, after showing them your plugin link, they said "no problem, just tell us what you need to have on the .htaccess file". I am not sure what to tell them. Can you advise me what the .htaccess file should say? I am with Oxyhost.com

Thanks much

03-28-2008 12:42 PM
Find all posts by this user Quote this message in a reply
Pacifier
Administrator
*******

Posts: 214
Group: Administrators
Joined: May 2006
Status: Offline
Reputation: 0
Post: #2
RE: .htaccess file is now allowed on my host

Code:
RewriteEngine On

# //seo_mod_start
# Uncomment the following and add your forum path if rewrites arent working properly
#RewriteBase /mybb/
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut=$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
# //seo_mod_end

03-28-2008 04:56 PM
Find all posts by this user Quote this message in a reply
poogoo
Junior Member
**

Posts: 2
Group: Registered
Joined: Mar 2008
Status: Offline
Reputation: 0
Post: #3
RE: .htaccess file is now allowed on my host

Pacifier,
here is the PM messages I got from my host, he said he is not sure how to set the .htaccess file. Please have a look and tell me if this makes sense. If you need to have a look at or upload a file, I can PM you my FTP login. Here is what he said (newest conversation on top):

"I'm not really familiar with rewrites either, maybe you should ask somebody else who knows about it.

Thanks,
(------his name deleted for this post....)

Quote:Originally Posted by me (poogoo)
I'm not that savvy when it comes to coding, is there a way to make it work?

Thanks again...


Quote:Originally Posted by (name deleted of the host)

Hi,

It gives an internal server error.
Quote:RewriteBase /htdocs
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut =$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]

Commenting the 2nd last line doesn't.


Quote:Originally Posted by me (poogoo)
Hello----name deleted,

here is the info needed on the .htaccess file for my site at: (my website)
I copied exactly what the maker of the MyBB SEO plugin sent me:

======================
RewriteEngine On

# //seo_mod_start
# Uncomment the following and add your forum path if rewrites arent working properly
#RewriteBase /mybb/
RewriteRule ^index.html$ index.php [L,NE]
RewriteRule ^(.*)-t-([0-9]+).html(.*)$ showthread.php?tid=$2$3 [QSA,L]
RewriteRule ^(.*)-t-([0-9]+)-([0-9]+).html$ showthread.php?tid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+).html(.*)$ forumdisplay.php?fid=$2$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&page=$3 [QSA,L]
RewriteRule ^(.*)-f-([0-9]+)-([a-z]+)(-|-[a-z]+)-([0-9]+)-([0-9]+).html(.*)$ forumdisplay.php?fid=$2&sortby=$3&order=$4&datecut =$5&page=$6$7 [L]
RewriteRule ^(.*)-a-([0-9]+).html$ announcements.php?aid=$2 [L]
# //seo_mod_end

====================

Please let me know when it is installed, or if I need to install it, whatever is easiest for you.

Thanks again,

(me, poogoo)"

END of PM conversation.

PS...after I installed the .htaccess file, and activated the plugin, I was told to copy and paste some code at the end of the .htaccess file.

03-29-2008 04:22 AM

This post was last modified: 03-29-2008 04:25 AM by poogoo.

Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: