Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

rewrite rule wp blog to subdirectory

..... 
<IfModule mod_rewrite.c>

    RewriteEngine On
    # wordpress rules 
    DirectoryIndex index.php
    RewriteRule ^blog/(.*)$ blog/$1 [PT,L]

    # symfony rules 
    DirectoryIndex app.php
    .....
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rewrite #rule #wp #blog #subdirectory
ADD COMMENT
Topic
Name
8+9 =