Mod URL rewrite Help

Started on the old forum in April 2012 · view the original in the archive · old links redirect here

#haccess #mod-url-rewrite

8 replies · 652 views · started 14 years ago · 1 min read

6 participants
tutorial Junior · 14 posts #1

Hello friends, I am trying to change my site url using mod url rewrite. Please help me.

My original url: somesite.com/games/index.php?id=2342&default=240x320&type=java&d=gl

Mod URL should: somesite.com/games/2342/240x320/java/gl

Is it possible?

If possible please help.

Thanks

subzero Super moderator Fellow · 3,954 posts #2

Basic Url rewrite

RewriteEngine on
RewriteRule ^fileone.html$ filetwo.html  

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

i0nutzxp Developer · 150 posts #3

I made this on your example. You can validate with regex even more if you want/can.

RewriteEngine on RewriteRule ^(\w*)/([0-9])/(\w)/(\w*)/([a-z]){2}$ $1/index.php?id=$2&default=$3&type=$4&d=$5

<?php unlink('World/Europe/Romania.country'); ?>
tutorial Junior · 14 posts #4

i0nutzxp wrote: I made this on your example. You can validate with regex even more if you want/can.

RewriteEngine on RewriteRule ^(\w*)/([0-9])/(\w)/(\w*)/([a-z]){2}$ $1/index.php?id=$2&default=$3&type=$4&d=$5

Thanks it worked 🙂

Rocky01 Junior · 44 posts #5

Where to write this code? On .htaccess file or what?

@n@l

Rocky01 Junior · 44 posts #6

Plz anyone help. Or give the link of mod rewrite tutorial

@n@l

Ghost Senior · 366 posts #7
<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>
softwarefreak Senior · 349 posts #8

Rocky01 wrote: Plz anyone help. Or give the link of mod rewrite tutorial

Easy Mod Rewrite : mod_rewrite tutorial

Added after 3 minutes:

Ghost wrote: Easy Mod Rewrite : mod_rewrite tutorial

mod_rewrite: A Beginner's Guide to URL Rewriting Article - SitePoint

htaccess And mod_rewrite Tutorial

A Simple mod_rewrite Tutorial: SEO-Friendly, Attractive URLs :: HTMList.com, A Web Development Blog by Synapse Studios

is google really that hard to use?

LOL, I've put the link 1st 😀 but my net was disconnected, so it came after you 😛 BTW, the site is great👍

I need some facebook likes, can you please help me 🤝 http://facebook.com/softwarefreakin I noticed social media is really powerful 🧙 Well DONE is better than well SAID

Ghost Senior · 366 posts #9

softwarefreak wrote: Easy Mod Rewrite : mod_rewrite tutorial

Added after 3 minutes:

LOL, I've put the link 1st 😀 but my net was disconnected, so it came after you 😛 BTW, the site is great👍

a quick search of google lol. was first 4 on the list. i checked them firsts to see if any good. looked promising so i sent.

not sure why he didnt just use google instead himself rather than post asking for a location to a tut.

i should of been more cocky and a posted Google instead lol. 😉

<?php include ('Ghost'); if ($Post == true) { echo ' ![](http://destrukt.dk/ico/phpdeveloper.jpg) alt='coding-talk.com!!' />'; echo 'Sharing Is Caring!'; } else { echo ' ![](http://img98.imageshack.us/img98/6476/av3ro4.jpg) alt='the username GHOST has been comprimised!' />'; echo 'OMG SOMEBODY HELP ME!!'; } ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close