.htaccess issue

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

.htaccess issue

Post by doctorized »

I am trying to change the url in browser from
to
I ve written the rule:

Code: Select all

RewriteEngine On
RewriteRule ^contact/?$ /index.php?page=contact [L]
and it is not working. What am I doing wrong?
Andesdaf
User
User
Posts: 85
Joined: Sun Mar 22, 2009 2:53 pm
Location: GER, Saxony

Re: .htaccess issue

Post by Andesdaf »

The rewrite seems to be correct. Maybe a server configuration issue?
normeus
Enthusiast
Enthusiast
Posts: 472
Joined: Fri Apr 20, 2012 8:09 pm
Contact:

Re: .htaccess issue

Post by normeus »

let's say you are using PureBasic to send:

Code: Select all

https://www.url.com/contact
(nothing after contact, if you want "contact/joe" then you have to change the directive)
I assume you are sending "https" then your .htaccess line is fine and should turn it into:

Code: Select all

www.url.com/index.php?page=contact
you can test your htaccess directives here:
https://htaccess.madewithlove.com/

If you are using a browser, and see the wrong address at the address bar, it can also happen that the address bar is being remembered so the address will have the php? url. Delete your address history and it will look the way it is supposed to.

send me a private message if you have any questions.

Norm.
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari
User avatar
doctorized
Addict
Addict
Posts: 882
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

Re: .htaccess issue

Post by doctorized »

normeus wrote: Tue Jan 09, 2024 9:12 pm ......
send me a private message if you have any questions.

Norm.
You have a pm.
Andesdaf wrote: Tue Jan 09, 2024 9:09 pm The rewrite seems to be correct. Maybe a server configuration issue?
redirect 301 rules work like a charm but no RewriteRule seems to work. What configuration could be done in plesk? (Plesk is the only tool that I use to access the my profile including files, settings and so on. I am a user, not admin.)
Post Reply