2.1 to 3.0 problem with pritty url

2.1 to 3.0 problem with pritty url

Postby kokarat » Fri Oct 15, 2010 7:01 am

after update 2.1 to 3.0 my site http://www.top4fun.com/p/home/B000TI836 ... Honor.html no longer work.
pls. help me to solve that

Thanks.
kokarat

 
Posts: 23
Joined: Mon Feb 15, 2010 4:44 pm

Re: 2.1 to 3.0 problem with pritty url

Postby ANS Team Dmitry » Fri Oct 15, 2010 12:08 pm

Hello kokarat,

You have to edit yours .htaccess file. Replace this:
Code: Select all
#####################
# Product URL Rules #
#####################

#RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p3=$3&p4=$4&p=$5 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2&p3=$3&p4=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p3=$3&p=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2&p3=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2 [QSA,L]


on this:
Code: Select all
#####################
# Product URL Rules #
#####################

#RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.html?p1=$1&p2=$2&p3=$3&p4=$4&p=$5 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.php$ product.html?p1=$1&p2=$2&p3=$3&p4=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.html?p1=$1&p2=$2&p3=$3&p=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)\.php$ product.html?p1=$1&p2=$2&p3=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)/([0-9]+)\.php$ product.html?p1=$1&p2=$2&p=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)\.php$ product.html?p1=$1&p2=$2 [QSA,L]
Best regards
ANS Team
ANS Team Dmitry

 
Posts: 96
Joined: Mon Sep 27, 2010 5:00 pm

Re: 2.1 to 3.0 problem with pritty url

Postby kokarat » Fri Oct 15, 2010 5:18 pm

still not work. pls. help me to solve

Code: Select all
<IfModule mod_rewrite.c>

   Options +FollowSymLinks
   RewriteEngine On

   # If you experience issues with SEO urls
   # not working as expected, try removing
   # the # below to enable RewriteBase

   #RewriteBase /

   RewriteCond %{SCRIPT_FILENAME} -f [OR]
   RewriteCond %{SCRIPT_FILENAME} -d [OR]
   RewriteCond %{ENV:REDIRECT_STATUS} !^$
   RewriteRule .* - [L]

   RewriteRule sitemap.xml sitemap.php
   RewriteRule ^browse/?$ browse.php [L]


#####################
# Product URL Rules #
#####################

#RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p3=$3&p4=$4&p=$5 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2&p3=$3&p4=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p3=$3&p=$4 [QSA,L]
RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2&p3=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p=$3 [QSA,L]
#RewriteRule ^p/([^/]*)/([^/]*)\.php$ product.php?p1=$1&p2=$2 [QSA,L]

  ######################
  # Category URL Rules #
  ######################

   RewriteRule ^(.*)/([0-9]*)/(.*)/feed/?$ rss.php?c=$1&p=$2&sort=$3 [QSA,L] # Category URL Rule
   RewriteRule ^(.*)/([0-9]*)/(.*)?$ browse.php?c=$1&p=$2&sort=$3 [QSA,L] # Category URL Rule
   RewriteRule ^(.*)/([0-9]*)?$ browse.php?c=$1&p=$2 [QSA,L] # Category URL Rule

</IfModule>
kokarat

 
Posts: 23
Joined: Mon Feb 15, 2010 4:44 pm

Re: 2.1 to 3.0 problem with pritty url

Postby Nirose » Sat Oct 16, 2010 6:54 am

i think you have to change those .php$ to .html$ in your .htaccess file.

Example
Before:
#RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.php$ product.php?p1=$1&p2=$2&p3=$3&p4=$4&p=$5 [QSA,L]

After:
#RewriteRule ^p/([^/]*)/([^/]*)/([^/]*)/([^/]*)/([0-9]+)\.html$ product.php?p1=$1&p2=$2&p3=$3&p4=$4&p=$5 [QSA,L]
Nirose

 
Posts: 89
Joined: Fri Mar 05, 2010 5:40 pm

Re: 2.1 to 3.0 problem with pritty url

Postby ANS Team Dmitry » Sat Oct 16, 2010 7:37 am

Sorry Nirose rights.

I have edited. Htaccess for ftp then you gave me.
But the site has not changed, I guess that you gave me access to another site
Best regards
ANS Team
ANS Team Dmitry

 
Posts: 96
Joined: Mon Sep 27, 2010 5:00 pm

Re: 2.1 to 3.0 problem with pritty url

Postby kokarat » Sat Oct 16, 2010 11:34 am

ANS Team Dmitry wrote:Sorry Nirose rights.

I have edited. Htaccess for ftp then you gave me.
But the site has not changed, I guess that you gave me access to another site



ok, I see that and now copy for all my site worked.
Thanks good support
kokarat

 
Posts: 23
Joined: Mon Feb 15, 2010 4:44 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron