URL Rewriting for just .php & .asp files

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
thoxz
-


Joined: 20 Nov 2018
Posts: 1

PostPosted: Tue Nov 20, 2018 5:34 pm    Post subject: URL Rewriting for just .php & .asp files Reply with quote

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 View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 835

PostPosted: Fri Nov 23, 2018 12:39 pm    Post subject: Re: URL Rewriting for just .php & .asp files Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group