I've got an 'Offers' page with 3 deals on there. Each deal has it's own link with the URL like this:
<a href="./Contact/Deal" />Deal 1</a>
<a href="./Contact/Deal" />Deal 2</a>
<a href="./Contact/Deal" />Deal 3</a>
The idea is when one of the 3 deal buttons are clicked, I want to send a $_GET value through the URL and populate my textarea on my form with some text relevant to the 'Deal' on my contact page.
I am rewriting the URL and only just got the page to load (I was getting a 404 before). Trouble is, my page has no styles applied to it whatsoever. The stylesheet appears in the <head> but none of the elements have any styles applied to them.
Here is my Offers page:
<h2 id="offer_intro">Exclusive Offers This Year!</h2>
<div class="deals" id="deal1">
<p>Guranteed 40% off any website for our second client! Firstly, I will liaise with you and discuss the requirements of your website. I will provide you with the standard price, followed by the price after the deduction of the 40%. This offer includes domain & hosting for 1 year.</p>
<div class="deals" id="deal3">
<h2>£50 Logo/Banner Design</h2>
<p>If you would simply like a new logo or banner designed for your existing website, we provide this service for a very cheap fee of £50 when you order by 31<sup>st</sup> October 2013. We will create 3 or 4 mock examples and provide you with them all. We make any tweaks which you suggest.</p>
<span>Need a logo?</span>
<div class="deals" id="deal2">
<h2>Free Domain & Hosting!</h2>
<p>Free Domain & Hosting for<span>2 years</span> when you purchase any website. This will be deducted from the overall price of your website. We will provide support in setting up your domain and hosting account, including any email accounts and/or mailing accounts your website will use.</p>
Here is my .htaccess file:
RewriteRule ^/?([a-zA-Z_]+)$ index.php?page=$1 [L,QSA]
RewriteRule ^/?([a-zA-Z_]+)/([a-zA-Z_0-9]+)$ index.php?page=$1&deal=$2 [L]
Obviously something is not right with the second RewriteRule I think because like I said above, it was giving me a 404 and I kept modifying it and I looked at other peoples problems online and figured the 'pattern' but not quite 100%.
Getting this error in Chrome Dev Tools:
Has anyone ever come across this problem?
Thank you for your time.
Edited by Love2c0de, 21 September 2013 - 11:23 PM.