Coder Social home page Coder Social logo

basic-php-framework's People

Contributors

lufinkey avatar

Watchers

 avatar  avatar

basic-php-framework's Issues

No setup instructions

Hello

I overheard in some talk in a hacker-innovation-safe-space about a hip new PHP framework "basic-php-framework." I really would like to use this for my StartUp but I can't figure out how to create a project with it. Could you please include a readme with setup instructions? Please and thanks you

Cheers

I have quite a simple question about URL rewriting subcategory and category URL

Hello everybody!

I have quite a simple question about URL rewriting subcategory and category URL, I can't find any solution to this problem (due to lack of my deeper apache programming knowledge).
Here is my problem/question:

we have two website url that causes a duplicate problem in this URL Both of files in the company folder(showcategoryPage,showsubcategoryPage) Both of the folder not work same time. i have to comment on one code then its work.

domain.com/company/automobiledirectory                           (showcategoryPage)
domain.com/company/automobiledirectory/automotive-led-light      (showsubcategoryPage)

This is .Htaccss File code
Options +FollowSymlinks
RewriteEngine On

#RewriteBase /

#RewriteCond !{HTTPS} off
#RewriteRule ^(.)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{HTTP_HOST} !^www.
#RewriteRule ^(.
)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteRule ^company/([a-zA-Z0-9_-]+)/([0-9]+)$  company/showcategory?cat_name=$1
RewriteRule ^company/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/$  company/showsubcategory?cat_name=$1&sub_cat_name=$2

If the requested filename is not a directory,

RewriteCond %{REQUEST_FILENAME} !-d

and if the requested filename is not a regular file that exists,

RewriteCond %{REQUEST_FILENAME} !-f

and if the requested filename is not a symbolic link,

RewriteCond %{REQUEST_FILENAME} !-l

then rewrite the URL in the following way:

Take the whole request filename and provide it as the value of a

"url" query parameter to index.php. Append any query string from

the original URL as further query parameters (QSA), and stop

processing this .htaccess file (L).

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

Thanks for your help guys!

If You need any other details on our coding, just let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.