4
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by MooGeek
0

here's what you need to do.

first, create a .htaccess

2.write this on the file
ErrorDocument 404 /example/

3.save the .htaccess on the example folder

4. the example folder should have an index.php so when they go to www.domain.com/example/300 which is not actually existing, the .htaccess will call the index.php then we can proceed to:

5. get the current URL that is

$_SERVER

6. cut it using explode function so you can get what data you want

7. Mark this thread as Solved

8. Cheers! :D

0

Although that's a nice work-around, I'd still want to see a full-blown rewriting process (read "how-to").
I'll give it a shot:

RewriteRule ^/example.php?id=([0-9]+)$ /example/$1 [L]

Did I nail it?

0

yes you are right you need to convert all your link to the desired format using php

0

Whoa, whoa!
You don't have to rewrite your links to any format! That's what mod_rewrite is for in the first place.

LINK

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.