Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
  • Location
    Vernon, Canada

xProteuSx's Achievements

Advanced Member

Advanced Member (4/5)




Community Answers

  1. kicken, thank you for your post. The Site Settings, however, only allow a selection of www. or non-www. domains, and specifies nothing in regards to https. I had a Mod Rewrite setup that redirected all traffic to https://www.mydomain.com/... but it seemed to have reduced my traffic significantly. I re-listed three versions of my site at Webmaster Tools (http://www.mysite.com, https://www.mysite.com, and http://mysite.com) and traffic went up for a while, and its dropped off significantly again. What do you suggest? I would like to redirect everything to https://www.mysite.com. Should I do this using the .htaccess and mod_rewrite, and keep only the same version up and running at Google Webmaster Tools? My content changes very frequently, and I hate having to resubmit three sets of sitemaps for three versions of the site ... BTW - thank you very much you guys (requinix and kicken)
  2. requinix, Yes, I do know how to add this code to the .htaccess, and I do have RewriteEngine on. Still, the code you have provided does not work, and I can't figure out why or what to do. As per the separate listings, this is the message (direct copy and paste) I get from Google Webmaster Tools when I "add a new property" (ie. domain/website): ----------------------- Add all your website versions Make sure you add separate Search Console properties for all URL variations that your site supports, including https, http, www, and non-www. ---------------------------- If I am doing something wrong, I'd like to know. All hail master "Google!" It almost seems that, according to that message you should add the following versions of your site: http with www http without www https with www https without www It seems ridiculous, but that's what I've understood. Yes, I do know how to add this code to the .htaccess, adn I do have RewriteEngine on.
  3. Thank you for your reply. The code you've provided does not work -- still having the same issue. Also, why is it not good to support www. and non-www.?? Seems to me this is a good idea, because it appears as though Google Webmaster Tools encourages separate listings for www. and non-www. indexing, as well as a separate listing for https indexing. Am I mis-understanding something there?
  4. I would like to implement the "inconsistent" www/no www thing while I work no the SSL problem. I am not sure that the SSL issue can be fixed, as SMF is known to have issues around SSL. I am looking for a proper fix, but in the meantime my forums are messed up for a large percentage of visitors.
  5. What a mess! And so much time trying to figure out how to fix it, all to no avail. As a last resort, I draw on you guys' collective knowledge. Please help! I've got the following issue. http://www.mysite.com/forums --> works! https://mysite.com/forums --> works! https://www.mysite.com/forums --> DOES NOT WORK! The forums are SMF and have issues with SSL. That having been said, if I can change all links that have www in them and link to either the forums directory or a sub-directory of forums and strip out the www then everything would work great. I cannot find a solution for this specific problem. FYI - the file structure for the site is relative. It seems to me that the simplest fix would be to do this: if URL contains "/forums" and "www" remove the "www". An even better fix would be to do this only when HTTPS is on. Thank you guys in advance.
  6. PHPFreaks folks, How in the heck do I name an array within an array (multidimensional array), so that I can bring it up by array name instead of array number? Please help me out here -- its over my head, I guess.
  7. Maybe I am not understanding your suggestions (thanks by the way!), but the themes that I am thinking of are drastically different so I am not sure I can adopt your suggestions. These themes do have a core style.css file, but each and every theme has completely different content formatting for each page, so calling up different .css files won't do the whole trick. I've implemented a temporary work-around, that I am confident I will be frowned upon by one and all: www.website.com/index.html -> all content = include('theme/' . $themedirectory . '/index.html') www.website.com/about.html -> all content = include('theme/' . $themedirectory . '/about.html') www.website.com/contact.html -> all content = include('theme/' . $themedirectory . '/contact.html')
  8. I am starting a project that is way over my head. As usual, I will be learning a lot as I go. The short and skinny: a website that allows users to select which theme they would like to use. My file structure is like this: www.website.com www.website.com/index.html www.website.com/about.html www.website.com/contact.html //default theme www.website.com/theme/default/index.html www.website.com/theme/default/about.html www.website.com/theme/default/contact.html //theme 1 www.website.com/theme/theme1/index.html www.website.com/theme/theme1/about.html www.website.com/theme/theme1/contact.html //theme 2 www.website.com/theme/theme2/index.html www.website.com/theme/theme2/about.html www.website.com/theme/theme2/contact.html So, I think its pretty self explanatory. I would like the URL's to always be: www.website.com www.website.com/index.html www.website.com/about.html www.website.com/contact.html But I want these files to change depending on the theme selected. So, if the user selects "theme 1": www.website.com/index.html -> will display content of -> www.website.com/theme/theme1/index.html www.website.com/about.html -> will display content of -> www.website.com/theme/theme1/about.html www.website.com/contact.html -> will display content of -> www.website.com/theme/theme1/contact.html I have done a bunch of research, but all I seem to find are tutorials and articles about using the include(), include_once(), and require() functions. Any pointers to some better content? Is there a shortcut that can be taken? Something akin to .htaccess rewrite?
  9. I have a website with a series of directories that are created "on the fly". These images are used exclusively for storage of image files, and I've written a script that copies a default index.html file to each directory as it is created. This index.html file has nothing but a redirect script, so that if someone tries to access the directory instead of a file listing they are sent to the home page of the website. Is there any way to achieve this using the .htaccess file? Is there any way to get around having to copy this silly index.html file to every single directory? I don't even know how to phrase this issue for Google ...
  10. Hi guys. I am having a hell of a time finding a WYSIWYG editor that can also handle image uploads. I have a website where I would like users to be able to enter text and images as part of their articles, but not just URLs to images, but to actually upload their images to the site through the WYSIWYG editor so that they can be used in the articles. Is this possible? I can't seem to get a straight answer ... TIA.
  11. Where the heck is the "Solved" button??
  12. Got it working. Did this: $year_value = 'val_' . $_SESSION['add_value_year']; Then: $value = "SELECT rb_values." . $year_value . ", rb_images.img_thumb, rb_images.img_lock, rb_notes.not_general, rb_notes.not_modern, rb_notes.not_specialized FROM rb_values, rb_images, rb_notes WHERE rb_values.val_id = $note[0] AND rb_images.img_id = $note[0] AND rb_notes.not_id = $note[0]"; Then I could use: $row[$year_value]
  13. I've got something like this: $value = "SELECT rb_values.val_" . $_SESSION['add_value_year'] . ", rb_images.img_thumb, rb_images.img_lock, rb_notes.not_general, rb_notes.not_modern, rb_notes.not_specialized FROM rb_values, rb_images, rb_notes WHERE rb_values.val_id = $note[0] AND rb_images.img_id = $note[0] AND rb_notes.not_id = $note[0]"; Then I use mysql_fetch_assoc(), but I don't know how to retrieve the data for: rb_values.val_" . $_SESSION['add_value_year'] . " because that row could be val_2015, val_2014, val_2013, etc. depending on the value of $_SESSION['add_value_year']. I have tried using index number, but to no avail. I really don't know what to do here.
  14. You know, I've always been very grateful for the help that I've gotten on this website. I've always looked into the different options and suggestions that I have received because I know that I am not an expert coder. I've always come back here, and contributed whenever I could (not often because I am not an expert coder). However, the last 10 times of so I've kindly asked for help, I've come up against some prick such as yourself, how deems me too stupid to be worthy of help, or himself too awesome to help. Its really sad to see the website going in that direction. If you don't want to help, just stay out of it.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.