I have approx 25000 broken links, they are well indexed by google and located in valuable sites. Before, I had some changes in htaccess file and they was redirected to my structure, but now they are not work.
What I need to add to htaccess file for proper redirection to my threads?
Here is a example of indexed URL's:
warrelics.eu/forum/imperial-germany-austro-hungary/4157-ww1-german-id-tag.html
the proper URL is warrelics.eu/forum/imperial-germany-austro-hungary/ww1-german-id-tag-4157/
even without back slash it won't work warrelics.eu/forum/imperial-germany-austro-hungary/ww1-german-id-tag-4157
Or some of my old threads looks like that
warrelics.eu/forum/cloth-headgear-3-reich/inf-officers-cap-7681.html
however the original thread located here
warrelics.eu/forum/cloth-headgear/inf-officers-cap-7681/
I would like to hear suggestions on how to made RewriteCond for 111-xx-xx-xxx.html, xxx-xxx-xx-111.html and redirect all, what not end with / slash, to the right direction.
I have my old revrite rules which are commented
#RewriteCond %{REQUEST_URI} !member/
#RewriteRule ^[^/]+/[^0-9].*?-([0-9]+)\.html dbseo.php?dbseourl=showthread.php&t=$1 [L]
#RewriteRule ^[^/]+/[^0-9].*?-([0-9]+)-([0-9]+)\.html dbseo.php?dbseourl=showthread.php&t=$1&page=$2 [L]
#RewriteRule ^[^/]+/([0-9]+).*\.html dbseo.php?dbseourl=showthread.php&t=$1 [L]
#RewriteRule ^([^/]+/.*[0-9])$ http://warrelics.eu/forum/$1/ [L,R=301]
What I need to add to htaccess file for proper redirection to my threads?
Here is a example of indexed URL's:
warrelics.eu/forum/imperial-germany-austro-hungary/4157-ww1-german-id-tag.html
the proper URL is warrelics.eu/forum/imperial-germany-austro-hungary/ww1-german-id-tag-4157/
even without back slash it won't work warrelics.eu/forum/imperial-germany-austro-hungary/ww1-german-id-tag-4157
Or some of my old threads looks like that
warrelics.eu/forum/cloth-headgear-3-reich/inf-officers-cap-7681.html
however the original thread located here
warrelics.eu/forum/cloth-headgear/inf-officers-cap-7681/
I would like to hear suggestions on how to made RewriteCond for 111-xx-xx-xxx.html, xxx-xxx-xx-111.html and redirect all, what not end with / slash, to the right direction.
I have my old revrite rules which are commented
#RewriteCond %{REQUEST_URI} !member/
#RewriteRule ^[^/]+/[^0-9].*?-([0-9]+)\.html dbseo.php?dbseourl=showthread.php&t=$1 [L]
#RewriteRule ^[^/]+/[^0-9].*?-([0-9]+)-([0-9]+)\.html dbseo.php?dbseourl=showthread.php&t=$1&page=$2 [L]
#RewriteRule ^[^/]+/([0-9]+).*\.html dbseo.php?dbseourl=showthread.php&t=$1 [L]
#RewriteRule ^([^/]+/.*[0-9])$ http://warrelics.eu/forum/$1/ [L,R=301]
Last edited: