Website Optimizer Dynamic Page Help

Discussion in 'Programming' started by blogit.li, Jan 26, 2008.

  1. #1
    Hello
    I am running a shopping cart that has dynamic pages but it has a built in SEO module and rewrites all the URL's to appear static. The index.php calls index.tpl. A template used throughout the entire site. WO tags need to be in the header which is in index.tpl. I've inserted all the code in my original page, test page and conversion page. Google verified the tags, and when I visit the page it cookies me and redirects me to either my original page or test page (home.php) The problem i'm having is when I try to begin to navigate the site I am always being redirected back to home.php. The htaccess file used with the shopping cart is below, is this affecting website optimizer if so what can I change for it to let me navigate the site and let WO function correctly. I know I can just create a static landing page for index.php, my test page home.php is just a static version of the index which I made but if I could get it to work with the templates I rather do that. Any suggestions would be appreciated

    Thanks

    DirectoryIndex index.html index.php

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . index.php [L]


    </IfModule>
     
    blogit.li, Jan 26, 2008 IP
  2. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #2

    Seems to be working...all requested files will bring user to the index.php page. :eek:

    Delete the code in the .htaccess file and see what happens.

    Make sure to paste the code in notepad and save it so you can reinsert if there is an issue.
     
    Sem-Advance, Jan 26, 2008 IP
  3. blogit.li

    blogit.li Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    The SEO Module needs that rewrite rule to make the URL's appear static. If I comment out that line the SEO module breaks and the site doesn't work. Only when Website optimizer directs me to my test page home.php does it happen when I click any link im redirected back to home.php, when it cookies me and sets me to use my original page index.php everything is fine.....Any suggestions on a work around?
     
    blogit.li, Jan 26, 2008 IP
  4. Sem-Advance

    Sem-Advance Notable Member

    Messages:
    6,179
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    230
    #4
    Build a sub domain and a static page there to use with WO?

    the .htaccess file won't effect things then I believe.

    Important
    I'm an online marketing nut and not a server admin ;)
     
    Sem-Advance, Jan 26, 2008 IP