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).
Custom page isn't working
Re: Custom page isn't working
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.
You might also try reading about custom pages in the AOM Blog. Maybe you can spot what you might be doing differently.
Re: Custom page isn't working
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.
Re: Custom page isn't working
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.
Re: Custom page isn't working
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.
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.
Re: Custom page isn't working
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.
I've passed on a note to Justin regarding this as a possible bug.
Re: Custom page isn't working
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!
Who is online
Users browsing this forum: No registered users and 7 guests