phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
A little problem.

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
::  
Author Message
icetrax



Joined: 11 Mar 2008
Posts: 1

A little problem.Posted: Tue Mar 11, 2008 6:34 pm    Post subject: A little problem.

I think the problem is simple, there it is:

Instead of writing page URLs like this:

domain.com/category/x/xxx.html
domain.com/product/xxx.html

It's going like:

domain.com/category/category/x/xxx.html
domain.com/category/product/xxx.html

The category or product doubles. I will be very very thankful if you can help me fix this.

Thats my .htaccess:
Code:

Options -MultiViews
RewriteEngine On

SetEnvIf Request_URI "/admin/" static
SetEnvIf Request_URI "ajmp.php" static

RewriteRule (.*)/images/([^/]+) images/$2 [L]

RewriteRule ^(.*)contact contact.php [L,QSA]
RewriteRule ^(.*)about about.php [L,QSA]
RewriteRule ^product/([0-9]+)\.html product.php?id=$1 [L,QSA]
RewriteRule ^category/([0-9]+)/([0-9]+)/([0-9]+)\.html product_list.php?affiliate_id=$1&category=$2&page=$3 [L,QSA]
RewriteRule ^category/([0-9]+)/([0-9]+)\.html product_list.php?affiliate_id=$1&category=$2 [L,QSA]
RewriteRule ^category/([0-9]+)\.html product_list.php?affiliate_id=$1 [L,QSA]
RewriteRule ^search/([^/]*)/([0-9]+) search.php?search=$1&page=$2 [L,QSA]
RewriteRule ^search/([^/]*) search.php?search=$1 [L,QSA]
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

A little problem.Posted: Wed Mar 12, 2008 6:00 pm    Post subject: Re: A little problem.

This is not related to the .htaccess but rather to the link building process IMO.

Could be because of a base href adding the relative path to an incomplete relative path (./cat/ vs cat/) in the ending code.

Try to add the full domain in your link, should do the trick Wink

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » Apache mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: