yosri algharawy
02-01-2012, 10:57 AM
hi,
my article's directory url was without post ID
i found this code in core.php file
$Article->url = $Article->Category->url.$Article->urltitle.'.'.$this->db_settings['url_extension'];
and changed it to
$Article->url = $Article->Category->url.'/'.$Article->id.'/'.$Article->urltitle.'.'.$this->db_settings['url_extension'];
this mean that i added
'/'.$Article->id.'/'.
after
$Article->Category->url.
so, ID displayed but after two slash "//"
example:
http://sharemorearticles.info/misc//2/tweetattacks-professional-review-twitter-advertising.html
when i delet
'/'.
that before
$Article->id.'/'.
the url not work and give me the missage
page can't be found
my article's directory url was without post ID
i found this code in core.php file
$Article->url = $Article->Category->url.$Article->urltitle.'.'.$this->db_settings['url_extension'];
and changed it to
$Article->url = $Article->Category->url.'/'.$Article->id.'/'.$Article->urltitle.'.'.$this->db_settings['url_extension'];
this mean that i added
'/'.$Article->id.'/'.
after
$Article->Category->url.
so, ID displayed but after two slash "//"
example:
http://sharemorearticles.info/misc//2/tweetattacks-professional-review-twitter-advertising.html
when i delet
'/'.
that before
$Article->id.'/'.
the url not work and give me the missage
page can't be found