Link to home
Start Free TrialLog in
Avatar of Chris Labbate
Chris LabbateFlag for Canada

asked on

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

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...
Avatar of Armand G
Armand G
Flag of New Zealand image

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?
Avatar of Chris Labbate

ASKER



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

Hi,

Can you try putting the .htaccess file inside the folder where your CMS is?
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]
I'm glad that it worked.
ASKER CERTIFIED SOLUTION
Avatar of Armand G
Armand G
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes I did notice that repeat... I will fix good eye.
So can you credit points now?
Thanks saved an e-commerce store from re-developing, would have been a 10,00 grand project to re-create