Jump to content

Flora Adams

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Flora Adams

  • Rank
    New To The Neighborhood

Profile Information

  • Gender
    Female
  • Location
    Alaska
  • Interests
    Writing, drawing, artwork, webdesign, games and so on and so forth.
  1. My website works perfectly now! Thank you for the help, Alex! It's much appreciated.
  2. Hi, people of the forums! I'm fiddling with my .htaccess file, and I've run into some issues. Before I continue, please note that I know next to nothing about .htaccess files, my apologies! Now, originally a nice support rep fixed my previous .htaccess file, using this code. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{THE_REQUEST} ^GET\ (.*)\.html\ HTTP RewriteRule (.*)\.html$ $1 [R=301] RewriteCond %{REQUEST_FILENAME}.html -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.html [L] </IfModule> It works splendidly! However, I wanted a trailing slash at the end of the url. With this code, it displays "websitedotcom/about," when I'd rather "websitedotcom/about/" It's a small issue, but it DOES return with an error if I try to add a trailing slash to the url. I could use permanent redirects to fix it, but I have a lot of pages to fix. So, in my quest for finding codes to add a trailing slash, I tried this code that I found online. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]+)/$ $1.html RewriteRule ^([^/]+)/([^/]+)/$ /$1/$2.html RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$ RewriteRule (.*)$ /$1/ [R=301,L] </IfModule> This works well too! Except for one problem. I have 2 folders and 1 subdomain. The folders are using index.html files, and I specify them in links as their directory name. (websitedotcom/directoryindex/, which is an index.html) The subdomain is for my forum, websitedotcom/forum/ Now, when I try to click websitedotcom/directoryindex/ or websitedotcom/forum/, I get a 404 error page, and I'm assuming this is because the codes I used edit out the .html file extension, add a trailing slash to it. SO, the code either doesn't find the websitedotcom/directoryindex/ folder because it's a folder, not an html file, or it's conflicting some how by editing it to websitedotcom/directoryindex// I'll use the original code for now until I find a better solution. It's not exactly a dire problem, I was just curious as to why the new code conflicts with directory index files, and what a possible fix would be in order to display index files properly, while still having other html pages having a trailing slash. Thanks in advance.
  3. Thank you Thomas and Bruce! I hope you two are having a lovely day.
  4. Hello good sir! Thanks for your reply and advice! I think from now on, I'll just go ahead and set up a separate database for the forum with it's own user. I'll save this information for future reference. I'm trying to keep things simple (since I'm not sure how to do a lot of the more advanced stuff) so super integration isn't a big concern.
  5. Hello! I hope everyone is having a splendid day. Overview Now, I've spent some time noodling around with Wordpress and MyBB, and trying to figure out the best way to have them behave together as one site. I have the official site that I'm working on, hosted on the Shared Hosting server plan that I bought a few weeks ago, and I have it running wordpress already. (Which will be the front end of the website. I have it situated so that it displays like a static website, and has a blogging section.) On a separate server that I'm using for testing, I uploaded MyBB to the same database as the wordpress site, in a subfolder of the root directory. (I added it manually from the cpPanel. I called it 'forums.') In this database, I have a user for the Wordpress site and a user for the MyBB forum site. It seems to be working okay. NOW. Onto my questions! Question 1 If I want to run Wordpress as the main site and add a MyBB forum under a subdomain, (mysite.com/forum) should I set up two different databases for each one? With their own designated database user? Question 2 Is it okay to upload a MyBB forum to a 'forum' subdirectory in the root directory, where all the wordpress stuff is? Question 3 Can Wordpress and MyBB share a database and database user? Can they share a database, but do they need different database users? Question 4 In short, what is the best way to set up wordpress as the main site, with a forum added to it? (With out using too many wordpress plugins?) --- Info - I don't mind if users need to independently sign up to each version of the site. (Wordpress site, Forum.) - I'm not interested in the wordpress forum plugins. I'll test those later on my test site. - I'll be manually linking the forum subdomain to the main site, and vice versa. - I already figured out how to actually install the forum, I just need to know which is a best set up for my website. - ALSO, I'm not terribly well versed in website, server and web designing terms and phrases! I know how some stuff works, but I'm still learning. If there are any questions, or if I need to clarify anything, let me know. Thanks!
×
×
  • Create New...