Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2013, 10:19 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-18-2013, 09:11 AM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone?
Reply With Quote
  #3  
Old 05-18-2013, 10:57 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have your main URL like this blog.vivapotenza.com/blog.php could be your problem
Reply With Quote
Благодарность от:
vivapotenza
  #4  
Old 05-18-2013, 12:14 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #5  
Old 05-18-2013, 05:36 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 05-19-2013, 01:05 PM
vivapotenza vivapotenza is offline
 
Join Date: May 2012
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 05:25 PM.


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.03636 seconds
  • Memory Usage 2,209KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (1)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete