View Full Version : Removing ?p=2 MOD
stevan
04-03-2006, 01:15 AM
Here is the mod to make it so your second page will look like this and cat page
page2.html
Added following line to .htaccess file
RewriteRule ^([/-_a-zA-Z0-9]+)/page([0-9].*)\.html$ /php/$1/\?p=$2 [L]
Modified the /templates/footer.tpl file line 8
FROM: {assign var='url_pattern' value='?p=$'}
TO: {assign var='url_pattern' value='page$.html'}
Modified the /includes/functions.php file line 195
FROM: $qp = strpos($path, '?');
TO: $qp = strpos($path, 'page');
This didn't quite work for me.
It changed the ?p=2 to page2.html but when I go to page 2 or 3 it shows the links from page 1 still. Might be something to do with some other mod I have had done, not sure. Going back to the ?p=2 for now.
:)
stevan
04-03-2006, 03:08 AM
I stated from scratch when i added it
I only know it works that way
I have only 2 per page 4 pages
When i first tryed it i have 28 total links 20 per page and it worked
I guess maybe it is some you added .
Steve
John D
04-03-2006, 01:07 PM
Anyone else using this?
Really interested in getting it for my site :)
Seems like google is still indexing the dynamic links/pages for me anyway but I would rather have this.
Thanks
bobby9101
04-16-2006, 03:24 AM
i am using it, and it works however now when i try to sort my links by "hits", "alphabetically", or by "pagerank it gets all screwed up :( any ideas?
euwebdirectory
04-19-2006, 03:05 PM
I have the same problem that bobby9101 .... another thing ... delete order page ... ¿? :(
seolion
02-21-2007, 05:54 PM
Why you need the sorting option? Remove it and it will work fine
I have had success at seofriendlydirectory.info with self made details mode as well
Here is my .htaccess
Content visible to registered users only.
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.