Jump to content

thetrooper1234

New Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

thetrooper1234's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The page is page.php I was under the impression that dynamic links retrieving from a database can have better urls created for SEO? I might be completely wrong?
  2. That's right. It's a in the database in a field "page_slug" associated with the page. In this case it's called "post-title"
  3. Hello everyone. I am having an issue with creating a rewrite for blog posts. Here is my .htaccess file. It doesn't work as intended. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] RewriteRule ^views/blog/?$ page.php?slug=/blog/ [L] RewriteRule ^views/blog/(.*)/?([0-9]*) page.php?page_slug=/blog/$1/$2 [L] index.php file points to the index.php in the views folder. Here is my folder stucture: root folder > views > blog > page.php The structure I'm trying to create is the following for any blog posts to be: mydomain.com/blog/post-title Any help would be much appriciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.