Solved

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

Posted on 2010-11-19
9
720 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
 

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
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now