I am developing a Nextjs (react) app who's backend is in wordpress. I've made my app live on vercel platform and connected it with my godaddy's domain. The wordpress is in /admin directory in my public directory. but when I access it with example.com/admin, it redirects to 404 page due to next routing. I tried to add sub-domain for admin but it doesn't seem to work. Is there any solution for this?
how can i add wordpress as subdomain in next js app
679 Views Asked by Asad Ullah At
1
There are 1 best solutions below
Related Questions in REACTJS
- What is `_dereq_()` inside React?
- React TypeError: React.renderComponent is not a function
- React - saving a component in the ref callback
- React Rails component: manually triggering a re-render
- React, ES6 - getInitialState was defined on a plain JavaScript class
- How to get multiple selected options value in React JS?
- React.render replace container instead of inserting into
- reactjs datagrid use html
- props is not initialized in react component
- How to display xml data using Reactjs
- hooking up the data model in ReactJS - syntax
- ReactJS: How to use an immutable empty array or object
- How to use Sinon.js FakeXMLHttpRequest with superagent?
- React select onChange is not working
- ReactJS - Tutorial Comment System > Threaded commenting
Related Questions in WORDPRESS
- Ajax jQuery firing multiple time display event for the same result
- Retrieving *number* pages by page id
- How to change the name of the file during unzip?
- Pass variables to extended class
- Dynamic wordpress background Based on Slider images
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
- Wordpress limit post that subscriber can create
- CSS styles for all instances of a WordPress widget
- Detect the function that redirects the page
- Show success or error messages in Ajax response to Wordpress custom registration form
- Internal 500 server error: .htaccess: RewriteCond: bad flag delimiters
- Rerun loop after every third post? (Wordpress)
- Error 404 not going after Wordpress Permalink change to custom structure
- YouTube views not counting on Wordpress embed
- Include only specific categories in WooCommerce product categories widget
Related Questions in NEXT.JS
- Getting babel build errors with the next.js getting started example
- Request Graphql api running on different port from Next.js app in development mode localhost
- Session lost when refresh the page (Next, react, isomorphism)
- HOC: A valid React element (or null) must be returned
- vscode launch config for next.js app
- Next.js + Redux server side rendering: Has data, but doesn't render on server side
- When to use a react framework such as Next or Gatsby vs Create React App
- Error: spawn EACCES on Heroku with Next.js
- Docker compose npm script command not found
- Error when using custom domain with Next.js on Heroku
- ReactJs, next JS, express and redux boilerplate
- Cannot use @import in css
- Next JS nested routing
- internal server error when deploying NextJs to firebase
- MaterialUI together with styled-components, SSR
Related Questions in WORDPRESS-REST-API
- Wordpress Restful Api without html tags
- Wordpress get previous/next post with meta value not empty
- Get x posts from x categories -Wordpress REST API v2
- Notify When Update(s) Performed
- WordPress notification rest API code
- Fetch wordpress posts of custom post type using the WP Rest API javascript Client (backbonejs)
- Error parsing WordPress JSON To Android App
- Register and nest custom fields in Wordpress REST API (JSON)
- How to get a hook during WordPress backend edition?
- get post bind to id in wp rest api on angular(ionic)
- add fields to wp api categories request
- 403 "rest_forbidden" error in WordPress REST API (but only for settings)?
- WP Rest API: Can't seem to get embedded data from the post object
- Custom Post Type & Author not associating, user post count is 0, api doesn't return author in post objects
- WP Rest API: Using JSONP and Routes with permalinks disabled?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Are you trying to use WordPress as a headless CMS? The most common practice is to expose your API on a https://api.yourdomian.com.
You can make requests to your API service and use a rendering strategy that you prefer ( client-side, static generation, or server-side) depending on your use case.
In terms of where you host the API server, depends on your budget and technical skillset, you can opt-in for managed hosting solutions (Heroku) or roll your own solution using AWS.
Unfortunately, you cannot deploy WordPress on the Vercel platform.