+ Reply to Thread
Results 1 to 5 of 5

Thread: .htaccess rewrite php

  1. #1
    shaistar's Avatar
    shaistar is offline x10Hosting Member shaistar is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Florida
    Posts
    23

    Question .htaccess rewrite php

    Hello Everybody,

    This is my first time posting! I'm new and am having a little trouble. I have a php website and would like to make the urls look like this/instead/of -> this?which=is&terrible=forSEO. Could anybody show me how to do this. I know it has something to do with a .htacess file, but I have no idea how to do it. I apologize if you guys get tired of answering questions like this, but I made every effort to understand it through google and I just don't get it.

    Sincerely and thankfully,
    Shai

  2. #2
    Skizzerz's Avatar
    Skizzerz is offline Contributors Skizzerz will become famous soon enough
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    2,153

    Re: .htaccess rewrite php

    Only if you tell us exactly how you want the paths to look like,

    e.g. what does this/map/to in terms of this?somethinggoeshere

  3. #3
    shaistar's Avatar
    shaistar is offline x10Hosting Member shaistar is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Florida
    Posts
    23

    Re: .htaccess rewrite php


  4. #4
    leafypiggy's Avatar
    leafypiggy is offline Community Advocate leafypiggy is on a distinguished road
    Join Date
    Aug 2007
    Location
    Massachusetts
    Posts
    2,228

    Re: .htaccess rewrite php

    are section=example&page=anotherone exactly what you want? Because the mapping changes if you start changing keywords.

    Essentially what you want to do if that's the case is grab the subfolders, and put them into a RedirectRule.

    You're gonna want to watch for XSS attacks and injections though...
    Neil Hanlon | x10Hosting Support Representative
    Neil[at]x10hosting.com
    █ I'm always happy to help. Just ask a question in Free Hosting
    Terms of Service IRC

  5. #5
    shaistar's Avatar
    shaistar is offline x10Hosting Member shaistar is an unknown quantity at this point
    Join Date
    Jun 2011
    Location
    Florida
    Posts
    23

    Smile Re: .htaccess rewrite php

    XSS attacks = moving up directories right? Because in my code I figured if I disabled the use of .'s and /'s I could avoid that. Injections = Taking stuff off my url. I put an error page for that. Is there anything else I should do? I do want it to look like that though.

+ Reply to Thread

Similar Threads

  1. .htaccess MOD REWRITE
    By DarkDragonLord in forum The Marketplace
    Replies: 6
    Last Post: 04-26-2011, 02:07 AM
  2. I don't know make rewrite URL sel by .htaccess
    By hieufpt156 in forum Scripts & 3rd Party Apps
    Replies: 0
    Last Post: 04-22-2011, 04:47 AM
  3. Ayuda con mi htaccess y mod rewrite
    By maletaspc in forum Soporte
    Replies: 2
    Last Post: 06-23-2010, 08:34 PM
  4. Htaccess url rewrite
    By cartermcpyro in forum Free Hosting
    Replies: 0
    Last Post: 03-06-2010, 10:01 AM
  5. Need help with Htaccess mod-rewrite
    By Mumin in forum Programming Help
    Replies: 2
    Last Post: 06-23-2008, 04:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers