Note that there are some explanatory texts on larger screens.

plurals
  1. POrename a url by replacing "-" to "/"
    primarykey
    data
    text
    <p>I have have .htaccess file as follows to show a url ..some.com/designit/portfolio-website-nature?page=2 inplace of ..some.com/designit//portfolio.php?cat=website&amp;subcat=nature?page=2 bt i want to show it as ..some.com/designit/portfolio/website/nature/page2</p> <pre><code>Options +FollowSymlinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([a-z0-9_.\ ]+)$ $1.php [QSA] RewriteRule ^portfolio-([a-zA-Z0-9_.\ ]+)$ portfolio.php?cat=$1 [QSA] RewriteRule ^portfolio-([a-zA-Z0-9_.\ ]+)-([a-zA-Z0-9.\-\ ]+)$ portfolio.php?cat=$1&amp;subcat=$2 [QSA] #RewriteRule ^portfolio-([a-zA-Z0-9_.\ ]+)-([a-zA-Z0-9.\ ]+)-([0-9]+)$ portfolio.php?cat=$1&amp;subcat=$2&amp;page=$3 [QSA] #RewriteRule ^portfolio-([a-zA-Z0-9_.\ ]+)-([0-9]+)$ portfolio.php?cat=$1&amp;page=$2 [QSA] #RewriteRule ^portfolio-([0-9]+)$ portfolio.php?page=$2 [QSA] RewriteRule ^projects-([a-zA-Z0-9_.\ ]+)$ portfolio_details.php?id=$1 [QSA] </code></pre> <p>My main problem is to replace "-" with "/".Please help me.</p> <hr> <p>I use WAMPSERVER apache version 2.2.17,OS-WINDOWS,I have .htaccess file in the designit folder.code i have already written.when i running your code and click on a category name the page is oppening with out its slyte,js,images.but the page is working and the url is"http://localhost/designitt/portfolio/categoryname".now again I click on the same link or on another category and the url appears as "http://localhost/designitt/portfolio/portfolio/categoryname" again I click the same link it becomes "http://localhost/designitt/portfolio/portfolio/portfolio/categoryname".I think u got my problem.Please help me when u get time.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload