php - Permalinks Not Working with MySQL Database -


I have a simple MySQL database with 3 fields (ref_id, slug, content). I have populated the following data (1, about, example content; 2, portfolio, example content; 3, contact, example content).

I have created an original PHP page with the following code:

   $ slug & lt; / h1 & gt; & lt; p & gt; $ content & lt; / p & gt;"; ? & Gt;  

When you go to mydomainname.com/myWebsite.php?ref_id=2 you will see the portfolio page, etc.

Everything works even here . Instead of using mydomainname.com/myWebsite.php?ref_id=2 I want to use mydomainname.com/portfolio

, which I have found and which tutorials I have I created an .htaccess file and the following code was added:

   

This does not work - I did not find the requested URL / $ sslug / myWebsite.php on this server when I go to mydomainname.com/portfolio. What am I missing here?

I think you've copied the following verbatim from the following tutorials:

  Delete the sub-line and restart the server. 


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -