blah.com/1
(integer)
or:
blah.com/1/
(trailing slash)
or:
blah.com/username
(text)
It works by using this mod_rewrite code:
- Code: Select all
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
# User public music pages
RewriteRule ^(.*)(\/)?$ music.php?v=$1 [L]
The problem is that if I want to do a simple rewrite of a link inside of those pages to make the link shorter/SEO purposes, there is a conflict. For example if I rewrite a link within that page such as and add this to the htaccess file:
- Code: Select all
RewriteRule a-(.*)-b-(.*)\.html$ extra.php?a=$1&b=$2
If I call it up in the browser it doesn't direct to that page but to the value from the first rewrite code. Could you please provide me with working code that allows the rewrite to still work but allows me to rewrite other links as well? Thanks