Here is my Rewrite Rule, Provided by 'RichardK'
- Code: Select all
RewriteEngine On
# Don't match existing files.
RewriteCond %{SCRIPT_FILENAME} !-f
# Don't match existing directories.
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /article.php?titleurl_art=$1 [QSA,L]
This makes site.co.uk/article.php?titleurl_art=portal
Appear as site.co.uk/portal
Now the only thing i need to do is change my PHP site link, in order for my links to output the new rewrite.
Here is my PHP Link.
<a href="../topic.php?titleurl_art=<?php echo $row_rsNo['titleurl_art']; ?>">
How would i edit this PHP link, for mod rewrite to output the rewritten friendly URL?
Thanks in Advance!