Solved

CMS Made Simple links not working after Site Migration?!?

Posted on 2010-11-19
9
724 Views
Last Modified: 2013-12-13
looking for some help with a site migration. The URL is www.bptreemarketing.com and since the site migration we have gotten everything back up and running except the internal links for the left hand navigation. I haven't used this CMS before so Im stuck...
0
Comment
Question by:fadercreep
  • 5
  • 4
9 Comments
 
LVL 7

Expert Comment

by:armchang
ID: 34175617
Hi,

One solution would be to modify you .htaccess file found in the root folder and add this codes inside the file:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Open in new window


How'd it went?
0
 

Author Comment

by:fadercreep
ID: 34176179


No Luck, I have been in that file to get the URL to point into the "httpdocs" folder because my hosting server only allows domains to be set to the root level of a folder unless coding a special handler within the .htaccess file.

I have created you a pass FTP to view the .htaccess file to help. Thanks

Settings

    * FTP Username: expert@forgeinfinity.com
    * Password: 423Lc$$$
    * FTP Server: ftp.forgeinfinity.com
    * FTP Server Port: 21
    * Quota: unlimited MB

0
 
LVL 7

Expert Comment

by:armchang
ID: 34176363
Hi,

Can you try putting the .htaccess file inside the folder where your CMS is?
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

Author Comment

by:fadercreep
ID: 34176483
Well the combination of the two responses worked...Although the code might be muddy this is the configuration that worked for me on BlueHost.com

# Bluehost.com
# .htaccess main domain to subdirectory redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.
# Do not change this line.
RewriteEngine on
# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?bptreemarketing.com$
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/httpdocs/
# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Change 'subdirectory' to be the directory you will use for your main domain.
RewriteRule ^(.*)$ /httpdocs/$1
# Change yourdomain.com to be your main domain again.
# Change 'subdirectory' to be the directory you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.
RewriteCond %{HTTP_HOST} ^(www.)?bptreemarketing.com$ [OR]
RewriteRule ^(/)?$ httpdocs/index.php




RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
0
 
LVL 7

Expert Comment

by:armchang
ID: 34176523
I'm glad that it worked.
0
 
LVL 7

Accepted Solution

by:
armchang earned 125 total points
ID: 34176576
I can see that in your line it also have this:


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

So, just merge that one with my one and finally:

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
0
 

Author Comment

by:fadercreep
ID: 34176679
yes I did notice that repeat... I will fix good eye.
0
 
LVL 7

Expert Comment

by:armchang
ID: 34177020
So can you credit points now?
0
 

Author Closing Comment

by:fadercreep
ID: 34178249
Thanks saved an e-commerce store from re-developing, would have been a 10,00 grand project to re-create
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question