|
#1
|
|||
|
|||
|
modrewrite and duplicate content
I'm using this lines in my .htaccess file
Code:
RewriteEngine On RewriteRule ^(browse|link|about)$ index.php?x=$1&pagenum=1 RewriteRule ^browse/([0-9]+)$ index.php?x=browse&category=&pagenum=$1 RewriteRule ^browse/category/([0-9]+)/([0-9]+)$ index.php?x=browse&category=$1&pagenum=$2 RewriteRule ^browse/category/([0-9]+)$ index.php?x=browse&category=$1&pagenum=1 RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1 RewriteRule ^comment/submit$ index.php?x=save_comment RewriteRule ^photo/([0-9]+)$ index.php?showimage=$1 RewriteRule ^photo/([0-9]+)/rating/([1-5])$ index.php?showimage=$1&rating=$2 RewriteRule ^photo/file/(.+)$ /images/$1 RewriteRule ^thumbnails/latest$ index.php?showthumb=latest&thumbtag=image RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1 RewriteRule ^browse/archive/(.*)/([0-9]+)$ index.php?x=browse&archivedate=$1&pagenum=$2 RewriteRule ^browse/archive/(.*)$ index.php?x=browse&archivedate=$1&pagenum=1 instead: Code:
$showprefix = ""; Code:
$showprefix = "photo/"; instead: HTML Code:
<a href="index.php?showimage=<IMAGE_PREVIOUS_ID>">
HTML Code:
<a href="/photo/<IMAGE_PREVIOUS_ID>">
Code:
$mod_rewrite = "1"; Code:
http://www.domain.com/photo/163 Code:
http://www.domain.com/index.php?showimage=163 Code:
http://www.domain.com/index.php?x=browse&category=4 can you tell me what is wrong in the .htaccess file? |
|
#2
|
||||
|
||||
|
basically the rewrite allows you to mask the untidy urls with the clean ones you define in your .htaccess file. so to use the clean urls you need to make sure that all links in your index.php file and any addons etc match with what you wanted when you wrote the .htaccess
in short you haven't changed how the links for thumbnails and categories are produced for tags in your index.php file. if you have trouble doing this or understanding what i mean then see how it works here: http://photos.jlspurling.com/browse plus google will probably keep the old links in it's system for a while but once they are linked no more they'll drop down a long way in the google rankings so don't worry about that.
__________________
Affordable Website Design in North Wales |
|
#3
|
|||
|
|||
|
I am not using addons for the browse page
can you tell me in what lines I must change the index.php file? in the line #597 I have: Code:
$image_category_all .= "<a href='$PHP_SELF?x=browse&category=$cat_id'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> "; $image_category_all_paged .= "<a href='$PHP_SELF?x=browse&category=$cat_id&pagenum=1'>" .$cfgrow['catgluestart'] .$name .$cfgrow['catglueend']."</a> "; I have seen your browse page, that is what I want. and you are right: I have many pages in the google secondary index. but I also have many pages in the normal index of google. |
| Post Reply |
| Thread Tools | |
|
|