Custom page isn't working

Get answers to your installation and setup questions.
Post Reply
SWalker1
Experience Level 3
Experience Level 3
Posts: 172
Joined: Thu May 15, 2008 2:13 pm

Custom page isn't working

Post by SWalker1 » Fri Feb 27, 2009 3:28 pm

Hello,

I am having problems building a custom page. After I click on the custom page link inside my website, it redirecting my custom page to the homepage even though I created a page with raw html. Could it possible be a problem with the setup itself or the htacess code (using -, html, no name).
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Custom page isn't working

Post by mcarp555 » Fri Feb 27, 2009 4:27 pm

We need more info - Is your page set up in the correct format (www.mysite.com/page-id.html)? Do your other links work properly?

You might also try reading about custom pages in the AOM Blog. Maybe you can spot what you might be doing differently.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

SWalker1
Experience Level 3
Experience Level 3
Posts: 172
Joined: Thu May 15, 2008 2:13 pm

Re: Custom page isn't working

Post by SWalker1 » Fri Feb 27, 2009 4:37 pm

It's set up as page-id.html (htaccess is setup as -, html, no names). It's still redirecting to the homepage of index.php. Other pages are working great.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Custom page isn't working

Post by mcarp555 » Fri Feb 27, 2009 4:45 pm

Can you post the contents of your .htaccess file? You might need to open a support ticket so we can investigate this in more depth.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

SWalker1
Experience Level 3
Experience Level 3
Posts: 172
Joined: Thu May 15, 2008 2:13 pm

Re: Custom page isn't working

Post by SWalker1 » Sat Feb 28, 2009 9:54 am

I am using Rule Set #2:

RewriteEngine on
RewriteRule ^home index.php
RewriteRule ^reviews-([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9]+)-([0-9]+).html index.php?c=$1&n=$2&i=$3&p=$4&a=reviews
RewriteRule ^buy-([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9]+)-([A-Za-z]+)-([0-9]+).html index.php?c=$1&n=$2&i=$3&m=$4&p=$5&a=buy
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9+_"]+)-([A-Za-z0-9+_]+)-([a-z]+)-([0-9]+).html index.php?c=$1&n=$2&k=$3&t=$4&s=$5&p=$6
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9+_"]+)-([A-Za-z0-9+_]+)-([a-z]+)-([0-9]+).rss index.php?c=$1&n=$2&k=$3&t=$4&s=$5&p=$6&rss=1
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9+_"]+)-([a-z]+)-([0-9]+).html index.php?c=$1&n=$2&k=$3&s=$4&p=$5
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9+_"]+)-([a-z]+)-([0-9]+).rss index.php?c=$1&n=$2&k=$3&s=$4&p=$5&rss=1
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([a-z]+)-([0-9]+).html index.php?c=$1&n=$2&s=$3&p=$4
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([a-z]+)-([0-9]+).rss index.php?c=$1&n=$2&s=$3&p=$4&rss=1
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9]+).html index.php?c=$1&n=$2&i=$3
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+)-([A-Za-z0-9]+).rss index.php?c=$1&n=$2&i=$3&rss=1
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+).html index.php?c=$1&n=$2
RewriteRule ^([A-Za-z0-9]+)-([a-z0-9]+).rss index.php?c=$1&n=$2&rss=1
RewriteRule ^page-([A-Za-z0-9+_"]+).html index.php?a=$1
RewriteRule ^([A-Za-z0-9]+).html index.php?c=$1
RewriteRule ^([A-Za-z0-9]+).rss index.php?c=$1&rss=1
RewriteRule ^item-([A-Za-z0-9]+) index.php?i=$1
RewriteRule ^search-([A-Za-z0-9+_"]+) index.php?k=$1

I just filled out a support ticket as well.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

mcarp555
Admin
Admin
Posts: 4088
Joined: Thu Sep 14, 2006 5:19 pm
Location: United Kingdom
Contact:

Re: Custom page isn't working

Post by mcarp555 » Sat Feb 28, 2009 2:31 pm

Update: Looks like when the URL with Name option is set to no, it has an effect on the page- parameter. Setting this to on and using Ruleset #1 corrects the problem.

I've passed on a note to Justin regarding this as a possible bug.
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

SWalker1
Experience Level 3
Experience Level 3
Posts: 172
Joined: Thu May 15, 2008 2:13 pm

Re: Custom page isn't working

Post by SWalker1 » Mon Mar 23, 2009 12:14 pm

The .htaccess code that you send to my email works. I forget to change the shop.php to index.php at first. Now it's working. Thanks!
Associate-O-Matic is changing. For the better. 8)

Please CLICK HERE for our important announcement.

Post Reply

Who is online

Users browsing this forum: No registered users and 14 guests