Forum Moderators: phranque

Message Too Old, No Replies

Append to end of the URL

         

Tooleman

8:19 pm on Oct 12, 2010 (gmt 0)

10+ Year Member



I think what im dealing with here is just too easy and im over thinking it..

In a nut shell I want to append an argument at the end of all my URLS..

For example if I go to www.mysite.com it will rewrite it as www.mysite.com/?blah


This is what iv tried

RewriteRule ^(.*)$ ?blah [L,QSA]


What am I missing and or doing wrong.

Thank You

g1smd

9:23 pm on Oct 12, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



It will loop for ever, so you need to detect whether it has already been done or not.

A rewrite does not alter URLs. It links an incoming URL request with a non-default internal filepath and file. A redirect tells the browser to make a new request for a new URL. You have a rewrite, not a redirect here.

If you want to change your URLs, you must change the links on your pages to point to the correct URL. It is links that define URLs.

Mod_Rewrite reacts only to the incoming request arriving at the server after the link is clicked.