Results 1 to 2 of 2
-
28th Jun 2011, 02:00 PM #1OPMemberWebsite's:
zomgbbqpizza.com evilddl.com scenemarket.orgMod Rewrite Help
Hi,
I have managed to rewrite most of the urls on my site but having some problems with rewriteing the search results.
The rewrite code I have tried is:
Code:RewriteRule ^search/(.*)/$ /index.php?q=$1&page=1 RewriteRule ^search/(.*)/([0-9]{1,3})/$ /index.php?q=$1&page=$2
Code:http://evilddl.com/search/adobe photoshop/
Code:http://evilddl.com/search/adobe photoshop/2/
DEViANCE Reviewed by DEViANCE on . Mod Rewrite Help Hi, I have managed to rewrite most of the urls on my site but having some problems with rewriteing the search results. The rewrite code I have tried is: RewriteRule ^search/(.*)/$ /index.php?q=$1&page=1 RewriteRule ^search/(.*)/({1,3})/$ /index.php?q=$1&page=$2The first line is working fine so if I go here it works well: http://evilddl.com/search/adobe photoshop/But the second line for pages is not working for example: http://evilddl.com/search/adobe photoshop/2/Does anybody know what Rating: 5
-
28th Jun 2011, 04:28 PM #2Google Corp.
Try this:
Code:RewriteRule ^search/(.*)/$ /index.php?q=$1 [L] RewriteRule ^search/(.*)/([0-9]{1,3})/$ /index.php?q=$1&page=$2
- replace all spaces in the search term with "+".
- instead of /search/ use /s/ - a shorter url.Life asked Death: "Why do people love me, but hate you?"
Death responded: "Because you're a beautiful lie and I'm the painful truth."
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
WCDDL v3 Rewrite
By AmN in forum Web Development AreaReplies: 3Last Post: 22nd May 2012, 01:19 AM -
[Need Help] vBSEO URL Rewrite
By MWMaster in forum vBulletinReplies: 1Last Post: 2nd Jan 2012, 11:32 PM -
Rewrite URL with htaccess?
By pi0tr3k in forum phpBBReplies: 2Last Post: 20th Sep 2010, 10:36 PM -
wcddl v2 rewrite
By r0ck in forum Web Application/Script SupportReplies: 3Last Post: 4th Feb 2010, 02:30 AM -
.htaccess rewrite
By Golden Falcon in forum IP.BoardReplies: 0Last Post: 25th Jan 2010, 06:14 AM
themaManager - edit and manage...
Version 4.04 released. Open older version (or...