View previous topic :: View next topic |
Author |
Message |
thoxz -
Joined: 20 Nov 2018 Posts: 1
|
Posted: Tue Nov 20, 2018 5:34 pm Post subject: URL Rewriting for just .php & .asp files |
|
|
hi all, first post for me and not very familiar with forums, but on/off longtime user of the Abyss Web Server - which is awesome btw!
Anywhoo having a little trouble following the URL Rewriting tut.
I haven't got any complicated scripts in my php files, so none of that index.php?id=apage
I just wanted to remove the .php extentsion from displaying in the browser
so for example, www.sitename.com/index.php to just www.sitename.com/index
and so i can also edit my internal ahref links from <a href="index.php">Homepage</a> to <a href="index">Homepage</a>
Also can the URL Rewriting be used on .asp extentsions? again like sitename.com/index.asp? to sitename.com/index
Not sure if i have explained well enough with this.
Any advice or walk-through would be mucho appreciated :) |
|
Back to top |
|
|
admin Site Admin
Joined: 03 Mar 2002 Posts: 1296
|
Posted: Fri Nov 23, 2018 12:39 pm Post subject: Re: URL Rewriting for just .php & .asp files |
|
|
thoxz,
Sure, URL rewriting could be used to hide the extension as you have suggested. But in order to help you effectively, we need to know if PHP files are mixed with ASP files in the same directories or not?
Are there images or other static content (.css and .js for example)? Are they in their own directories or mixed with PHP files? _________________ Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com |
|
Back to top |
|
|
|