Activity Stream
48,167 MEMBERS
6984 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 2 of 2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1.     
    #1
    Member
    Website's:
    zomgbbqpizza.com evilddl.com scenemarket.org

    Question 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:
    Code: 
    RewriteRule ^search/(.*)/$ /index.php?q=$1&page=1
    RewriteRule ^search/(.*)/([0-9]{1,3})/$ /index.php?q=$1&page=$2
    The first line is working fine so if I go here it works well:
    Code: 
    http://evilddl.com/search/adobe photoshop/
    But the second line for pages is not working for example:
    Code: 
    http://evilddl.com/search/adobe photoshop/2/
    Does anybody know what I need to change to make this work??
    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

  2.   Sponsored Links

  3.     
    #2
    Google Corp.
    Try this:
    Code: 
    RewriteRule ^search/(.*)/$ /index.php?q=$1 [L]
    RewriteRule ^search/(.*)/([0-9]{1,3})/$ /index.php?q=$1&page=$2
    ps, seo tips:
    - 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."


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WCDDL v3 Rewrite
    By AmN in forum Web Development Area
    Replies: 3
    Last Post: 22nd May 2012, 01:19 AM
  2. [Need Help] vBSEO URL Rewrite
    By MWMaster in forum vBulletin
    Replies: 1
    Last Post: 2nd Jan 2012, 11:32 PM
  3. Rewrite URL with htaccess?
    By pi0tr3k in forum phpBB
    Replies: 2
    Last Post: 20th Sep 2010, 10:36 PM
  4. wcddl v2 rewrite
    By r0ck in forum Web Application/Script Support
    Replies: 3
    Last Post: 4th Feb 2010, 02:30 AM
  5. .htaccess rewrite
    By Golden Falcon in forum IP.Board
    Replies: 0
    Last Post: 25th Jan 2010, 06:14 AM

Tags for this Thread

BE SOCIAL