Jump to content

Recommended Posts

Hey guys i need to change the url field. 

 

This is what i currently have, 

 

site.com/?page=home
and
site.com/?admin=home
 
Here is the .htaccess
 
RewriteEngine On
#Look for the word "wiki" followed by a slash, and then the article title
RewriteRule   ^?admin=home /admin/home 
 
dunno if im on the write track but ive never done url rewrites. 
 
 
i would like to see site.com/page/home
 
Link to comment
https://forums.phpfreaks.com/topic/279320-need-help-with-url-rewrite/
Share on other sites

Rewrite from /page/home to /?page=home.

RewriteRule ^/page/home ?page=home [L]
If that doesn't work then try without the first slash: ^page/home.

 

Do you have more pages that go from /page/abc to ?page=abc? If so you should make a generic pattern for all of them...

Ok so it gives me a internal 500 error and ive tried a few different methods still no luck

 

My Test site is spaxus.com

 

if you click the home menu button... it go to http://spaxus.com/?page=home

 

I would like it to show 

http://spaxus.com/page/home/

 

So can anyone help me out? 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.