How do I make it so that:
RewriteRule ^([^/]+)/?$ spotsite.php?pid=$1 [QSA,L]
Doesn’t match my homepage, which is www.mysite.com? As of now, every time I navigate to my main page, it annoyingly redirects me to this spotsite as well.. I don’t want this to happen.. I only want to redirect only if it’s www.mysite.com/somerandomnumberhere
Add this rule prior to the one mentioned:
Change index.html with whatever your directory index page is (index.php, etc). You can also replace index.html with just
/if you wish to preserve the url.