![]() |
Good 'ol mod rewrite help needed...
Ok, first off anyone taking time to read this, thanks. Now what I've made is one of those URL shortening scripts. Like TinyURL. Anyhow, I want to be able to rewrite my URLs like they do.
The rewrited URL Code:
domain.com/random-urlthat looks like Code:
domain.com/redirect.php?url=random-url |
This should work, admittedly Apache stuff isn't my strong point.
Code:
RewriteEngine on |
It'll probably make more sense to use a regular expression to match short urls and throw them into the redirect page.
Code:
# Turn on URL rewriting |
Thank you very much Salathe. Your help was invaluable.
|
| All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0