Edit Custom Page URL
This guide will help you set up custom URLs for pages created in Edwiser RemUI Page Builder. You don’t need to be a tech expert—just follow these steps carefully.
Step 1: Identify Your Server (Nginx or Apache)
Before making changes, you need to know whether your Moodle site is running on an Nginx or Apache server.
How to Check Your Server Type
For Moodle Admins:
Go to Site administration > Server > PHP info.
Look for the Server API section.
If it says Apache, you're using an Apache server.
If it mentions FPM/FastCGI, you're likely using Nginx.
Using the Command Line (For Those with Server Access):
Connect to your server using SSH.
Run this command:
If you see a version number, you have Apache.
If not, try:
If this shows a version number, you have Nginx.
Once you’ve identified your server, proceed to the correct section below.
Step 2: Configure Custom URLs
For Nginx Users
Setting Up a Custom URL for a Single Page
Open your Nginx configuration file. It’s usually located at:
Add this code inside the server block:
Save the file and restart Nginx:
Now, your page will be accessible at:
Setting Up Multiple Pages Dynamically
For multiple pages, use this instead:
Now, you can access pages dynamically like:
Alternative URL Format
If you prefer:
Use this:
For Apache Users
Enable URL Rewriting
Enable the mod_rewrite module by running:
Make sure your .htaccess file is inside:
Setting Up a Custom URL for a Single Page
Open your
.htaccess
file.Add this rule:
Restart Apache:
Now, your page is available at:
Setting Up Multiple Pages Dynamically
For multiple pages, use:
Now, your pages will be accessible at:
Alternative URL Format
For URLs like:
Use:
Ensure .htaccess Works
Check your Apache configuration file (/etc/apache2/apache2.conf
) and make sure it includes:
Then restart Apache:
Final Step: Restart Your Server
After making changes, restart your server to apply them:
For Nginx:
For Apache:
That's It! 🎉
Now, your custom pages should be working with clean URLs! 🚀
Last updated
Was this helpful?