Results 1 to 6 of 6

Thread: Mod_Rewrite, only one "true" URL?

  1. #1
    License owner
    Join Date
    Mar 2010
    Location
    Sweden
    Posts
    150

    Default Mod_Rewrite, only one "true" URL?

    When entering a URL such as http://arcade.com/Arcade/7346/Submission.html one can change the category as well as the title of the submission to anything, and still reach the destination. It seems like only the game ID is needed.

    Is there any way to cut down the URL to display only the ID, or to make it so that you can only type in the original URL (with the correct category and submission title) to reach the destination?

  2. #2
    License owner
    Join Date
    Feb 2010
    Location
    Redbank, Australia
    Posts
    169

    Default

    So you want something like: http://arcade.com/view/7346/ ? (It looks a bit odd without view there)

    You'll have to fix up a lot but it's not that hard to do you just need to change the rewrite rule and change the SEO output from files.

  3. #3
    License owner
    Join Date
    Mar 2010
    Location
    Sweden
    Posts
    150

    Default

    Yepp, something like that, it makes the URLs much more rememberable. Even better would be links with both ID and Title though, as long as you cannot change the title to something completely different and still reach the same destination.

  4. #4
    License owner
    Join Date
    Aug 2009
    Posts
    621

    Default

    how can you take the number and the view and just have the name of the game ?
    Flash Games like you never seen before

    Decay TD FlashJunkies first game try it out

  5. #5
    License owner
    Join Date
    Feb 2010
    Location
    Redbank, Australia
    Posts
    169

    Default

    Quote Originally Posted by Mircea007 View Post
    how can you take the number and the view and just have the name of the game ?
    so something like yoursite.com/game-name/ ? Send me a PM, I can do that.

  6. #6
    License owner
    Join Date
    Mar 2010
    Location
    Sweden
    Posts
    150

    Default

    Quote Originally Posted by GM's Alex View Post
    so something like yoursite.com/game-name/ ? Send me a PM, I can do that.
    Will do so.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •