Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Sub foder in server not working with htaccess (http://www.go4expert.com/forums/sub-foder-server-htaccess-t26262/)

ismailctg 12Jul2011 11:08

Sub foder in server not working with htaccess
 
I have a website directory and there i used a folder named 'sub'. inside this folder i place "arts.php" page.

When i browse with "sysdirectory.com/sub/arts.php" link not going to appropriate page.

When i remove the .htaccess page then going to appropriate page.

htaccess code is:

Options +FollowSymlinks
RewriteEngine on

RewriteRule ^search/([^/]+)/([^/]+)/?$ /search.php?pagenum=$1&input=$2 [L,QSA]
RewriteRule ^submit/([^/]+)/([^/]+)/?$ /addsite.php?cat=$1&subcat=$2 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ /shortpro.php?cat=$1&subcat=$2&pagenum=$3 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/?$ /product1.php?no=$1 [L,QSA]

Please help me....

pein87 14Jul2011 06:09

Re: Sub foder in server not working with htaccess
 
Technically this isn't my area of expertise(this is more of a server issue then a php one) but I bet its the fact that your not specifying that path for a rewrite. Add a new rule for that directory and it should work. If not check a how to on .htaccess files.


All times are GMT +5.5. The time now is 21:48.