vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Blog Redirect help please (https://vborg.vbsupport.ru/showthread.php?t=298234)

vivapotenza 05-16-2013 10:19 PM

Blog Redirect help please
 
Hi guys,

Im having a bit of trouble getting my blog setup for my CMS. everything has been going ok with it, but I decided I wanted to change the directory from www.vivapotenza.com/blog.php to blog.vivapotenza.com.

on my server, my vbulletin files are installed on a directory called "httpdocs", and the blog files are installed on the root of this (but not in a folder, so directly on the root). As i say, i had it running the standard way and it all worked ok.

I added the following code to my .htaccess file, which is also on the root:

Code:

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d

RewriteRule ^.*$ - [NC,L]

RewriteRule ^blogs/.* blog.php [QSA]
RewriteRule ^entries/.* entry.php [QSA]

I also uploaded a crossdomain.xml file to my root, with the following code in it:

Code:

<?xml version="1.0" encoding="UTF-8"?> <cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd"> <allow-access-from domain="*.vivapotenza.com"/> <site-control permitted-cross-domain-policies="master-only"/> <allow-http-request-headers-from domain="*.vivapotenza.com" headers="*" secure="true"/> </cross-domain-policy>
finally, I uploaded the following code into a file called vb_dir.php in my root:

Code:

$<?php

//If you installed the blog directly as a subdirectory of
//vbulletin (www.example.com/blog) then you don't need to change this
//file.  Otherwise comment out the first line, uncomment the second line,
//and change the value to be the actual path to the vbulletin installation on
//server. 


vb_dir = realpath(dirname(__FILE__) . '/..');
//
$vb_dir = "/path/to/vbulletin/";
?>

Needless to say, its not working at all, and I dont know what if any errors lie in the coding above? can anyone offer any guidance please?

Thanks in advance.

vivapotenza 05-18-2013 09:11 AM

anyone?

ForceHSS 05-18-2013 10:57 AM

You have your main URL like this blog.vivapotenza.com/blog.php could be your problem

vivapotenza 05-18-2013 12:14 PM

thanks for the response.

How would I correct that so it actually takes me to blog.vivapotenza.com instead? (which is how I want it)

ForceHSS 05-18-2013 05:36 PM

Blog is the folder name in your FTP that you need to store your files if you don't have them in this folder already you need to download all files to your desktop make a folder called blog in the FTP them upload all files to it then change the url in options if you can't login to admincp upload the tools.php file

vivapotenza 05-19-2013 01:05 PM

yeah i can login to acp, thanks, ill give it a bash buddy :)

--------------- Added [DATE]1369047543[/DATE] at [TIME]1369047543[/TIME] ---------------

so I now have a folder on my server called "blog", and have put all the files from my do_not_upload folder from my VB4.2.1 install into it (so all the blog files are in there).

I tried redirecting the blog to open at www.vivapotenza.com/blog/blog.php instead of just www.vivapotenza.com/blog.php which worked fine. I still cant figure out how to do what I want though, which is to have the blog open up at blog.vivapotenza.com? (when i put this url into the ACP it tries to open the blog at blog.vivapotenza.com/blog.php for some reason?


Should the crossdomain.xml, and the .htaccess be uploaded to the vbulletin root, or into the blog folder? Ive tried it both ways now and neither has worked, but I assume some/all of my code (above) is incorrect?


All times are GMT. The time now is 07:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01292 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete