Home forword btn Jai Singh forword btn How to Create Dynamic Url to Seo Friendly Url using Htacces

Jai Singh How to Create Dynamic Url to Seo Friendly Url using Htacces

How to Create Dynamic Url to Seo Friendly Url using Htacces

How to Create Dynamic Url to Seo Friendly Url using .Htaccess

Now we are explain how how to create dynamic url to seo friendly url using .htaccess file and we are explain step by step you can learn easily.

Now you can create .htaccess file and put the code above…

# how to create dynamic url to seo friendly url using .htaccess

#first step

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# Dynamic url of Category like http://example.com/category.php? category_name =category_name

RewriteRule ^category/(.*)$ category.php? category_name=$1 [L]

# Dynamic url of User like http://example.com/user.php?name_name=user_name

RewriteRule ^profile/(.*)$ user.php?user_name=$1 [L]

# Dynamic url of Post like http://example.com/post.php?post_name=post_name&post_url= post_url

RewriteRule ^(.*)/(.*)$ post.php?post_name =$1& post_url =$2 [QSA,L]

 

Save your htaccess file and upload your root domain….enjoy…thanks…

Topic Cover: # how to create dynamic url to seo friendly url using .htaccess, # how to create seo friendly url using .htaccess, # how to covert dynamic url to seo friendly url using .htaccess

Tags: dynamic url to seo friendly url using htaccess, seo friendly url using htaccess

  • Submit Date5 months ago
  • CategoryPHP
  • 11
  • ';
  • Comment0

Leave Your Comment

Login to post a comment