Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6863533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:47:39+00:00 2026-05-27T02:47:39+00:00

I have XAMPP installed, I run everything on my localhost/ So imagine I have

  • 0

I have XAMPP installed, I run everything on my localhost/
So imagine I have localhost/website/index.php or http://www.website.com/index.php;

How can I delete index.php and/or replace it with something like;
localhost/website/:) or http://www.website.com/:)

or show it like;
localhost/website or http://www.website.com

Example;

$URLcapture = $_SERVER['PHP_SELF'];
$URLcustom = ":)";

$_SERVER['PHP_SELF'] = $URLcustom;
echo $_SERVER['PHP_SELF'];

This shows 🙂 of course but how can I get 🙂 in my URL?

Thank you,
F4LLCON

EDIT

Under loaded modules I can see mod_rewrite.

STEPS BEFORE EVERYTHING — START –
In httpd.conf I’ve deleted;

# from infront of LoadModule rewrite_module modules/mod_rewrite. 

Changed;

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order deny,allow
    Deny from all
</Directory> 

and

<Directory "C:/xampp/cgi-bin">
    AllowOverride All
    Options +FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

STEPS BEFORE EVERYTHING — END –

In .htaccess I’ve added

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L]

and also tried

RewriteEngine On
RewriteBase /
RewriteRule index.php nieuw.php

What am I doing wrong?

EDIT 2

Not touching .htaccess at all worked.
1. Closed xampp and apache.

  1. Edited httpd.conf in C:\xampp\apache\conf;

2a Start with above steps;

2a STEPS BEFORE EVERYTHING — START – till

2a STEPS BEFORE EVERYTHING — END –

2b. added at the end of http.conf;

<IfModule mod_rewrite.c>  
RewriteEngine on  
RewriteRule ^/home$ /spiderweb/Web-projects/Web-stage/Nieuwidw/index.php 
RewriteRule ^/link$ /spiderweb/Web-projects/Web-stage/Nieuwidw/link.php 
RewriteRule ^/contact$ /spiderweb/Web-projects/Web-stage/Nieuwidw/contact.html
RewriteRule ^/about$ /spiderweb/Web-projects/Web-stage/Nieuwidw/about.html
</IfModule>
  1. start xampp/apache and type localhost/home

3a. the website will open but the layout is not there. So it does not load style.css

3b. .css is in;

3b. C:\xampp\htdocs\spiderweb\Web-projects\Web-stage\Nieuwidw\includes

3c. images are in;

3c. C:\xampp\htdocs\spiderweb\Web-projects\Web-stage\Nieuwidw\includes\images

Next

  1. on home you can see “more” button under every product, if you press on more you will be redirected to the products page in link.php but every product gets it’s own ID in the URL;

4a. http://localhost/link.php?id=126 so the page shows up; not found because the URL is different

How to fix these problems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:47:39+00:00Added an answer on May 27, 2026 at 2:47 am

    In php :

    header("Location: http://www.example.com/");
    

    But the best way is using htaccess (like ManseUK says)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed XAMPP to run PHP from eclipse. I have a standalone MySQL server
I wanna start with first program in PHP. I have got installed xampp and
I have XAMPP installed with PHP 5.2.6 in Windows XP. In my php.ini I
I have everything installed and I am able to create and run tests in
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
I have installed XAMPP server on my system to be able to use PHP.
I have XAMPP installed in local laptop. And I have a almost static ip.
All, I have installed xampp for linux on ubuntu 9.10. The installation directory is
I have Apache installed with the XAMPP package, and I'm working locally. I have
We have various php projects developed on windows (xampp) that need to be deployed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.